/* ==========================================================================
   The Measurement Lab — About, Contact & Resources
   --------------------------------------------------------------------------
   Net-new standard pages: the Claude Design phase mocked Home and Services
   only. They are built on the established system — same tokens, same type
   scale, same spacing rhythm, same accent rules — rather than inventing a
   second visual language.

   None carry a progress bar. The skeleton brief scopes that to the two
   long-scroll pages (Home, Services); these are standard pages.
   ========================================================================== */

/* Both pages lead with a generous top padding that clears the fixed header,
   the same approach Home and Services use instead of a spacer. */
.tml-page-head { padding: 152px 0 0; }
.tml-page-head .tml-eyebrow {
  display: block;
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}
.tml-page-head h1 {
  font-size: var(--fs-display-9);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--tml-dark);
  max-width: 20ch;
}

/* Reading column for first-person prose. Narrower than the grid pages —
   About is read, not scanned. */
.tml-prose { max-width: 760px; }
.tml-prose p {
  font-size: var(--fs-2xl);
  line-height: 1.62;
  color: var(--ui-text-strong);
}
.tml-prose p + p { margin-top: 22px; }
.tml-prose em { color: var(--tml-dark); font-style: italic; }
.tml-prose strong { color: var(--tml-dark); }

/* ============ ABOUT ====================================================== */
.tml-about-section { padding: 72px 0; }
.tml-about-section--tight { padding: 48px 0 72px; }

.tml-about-section h2 {
  font-size: var(--fs-display-7);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--tml-dark);
  max-width: 22ch;
  margin-bottom: 24px;
}
.tml-about-section h3 {
  font-size: var(--fs-display-5);
  line-height: 1.18;
  color: var(--tml-dark);
  margin-bottom: 28px;
}

/* --- Three seats at the table ---
   Career arc as the reason the thesis exists. Three cards, each accented
   like the three stages so the visual language stays consistent. */
.tml-seats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.tml-seat {
  background: var(--tml-white);
  border: 1px solid var(--ui-border);
  border-top: 4px solid var(--seat);
  border-radius: 12px;
  padding: 28px;
}
.tml-seat:nth-child(1) { --seat: var(--tml-purple); }
.tml-seat:nth-child(2) { --seat: var(--tml-purple-mid); }
.tml-seat:nth-child(3) { --seat: var(--tml-terracotta); }

.tml-seat-label {
  font-size: var(--fs-display-1);
  font-weight: var(--weight-bold);
  color: var(--seat);
  line-height: 1.1;
  margin-bottom: 12px;
}
.tml-seat p {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ui-text);
}

/* The line that closes the three seats — sits below the grid, full width. */
.tml-seats-close {
  font-size: var(--fs-xl);
  line-height: 1.6;
  color: var(--tml-dark);
  font-weight: var(--weight-bold);
  max-width: 760px;
  margin-top: 32px;
}

/* --- How I work: three proof points --- */
.tml-principles {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 820px;
}
.tml-principle {
  border-left: 3px solid var(--tml-purple-pale);
  padding-left: 22px;
}
.tml-principle h4 {
  font-size: var(--fs-xl);
  font-weight: var(--weight-bold);
  color: var(--tml-purple);
  margin-bottom: 6px;
}
.tml-principle p {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ui-text);
}

/* --- Sector breadth ---
   Described as experience, never as a client roster. */
.tml-breadth { padding: 56px 0; }
.tml-breadth-intro {
  font-size: var(--fs-lg);
  color: var(--ui-text);
  margin-bottom: 18px;
}
.tml-breadth-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.tml-breadth-list li {
  font-size: var(--fs-md);
  font-weight: var(--weight-bold);
  color: var(--tml-purple);
  background: var(--tml-purple-light);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
}

/* --- Close band --- */
.tml-page-close { padding: 88px 0; text-align: center; }
.tml-page-close h2 {
  font-size: var(--fs-display-7);
  line-height: 1.14;
  color: var(--tml-white);
  margin-bottom: 28px;
}

/* ============ CONTACT ==================================================== */
.tml-contact { padding: 48px 0 96px; }

/* Asymmetric on purpose. An even 1fr 1fr left the copy column two-thirds
   empty next to a five-field form: the left side is three short paragraphs,
   the right is substantial. The form now takes the larger share, and the
   copy column is capped at a comfortable measure so it reads as a deliberate
   column rather than a half-filled one. */
.tml-contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 64px;
  align-items: start;
}
.tml-contact-copy {
  max-width: 46ch;
  /* Travels with the form on the way down instead of stranding the direct
     email at the top of a long scroll. */
  position: sticky;
  top: calc(var(--nav-h) + var(--space-10));
}
.tml-contact-lede {
  font-size: var(--fs-display-1);
  line-height: 1.45;
  color: var(--tml-dark);
  margin-bottom: 28px;
}

/* Direct email + privacy grouped into one block so the column has structure
   rather than three paragraphs floating in space. */
.tml-contact-aside {
  border-top: 2px solid var(--tml-purple-light);
  padding-top: 22px;
}
.tml-contact-direct {
  font-size: var(--fs-lg);
  color: var(--ui-text);
  margin-bottom: 12px;
}
.tml-contact-direct a {
  font-weight: var(--weight-bold);
  color: var(--tml-purple);
  /* Long address — allow it to break rather than overflow the column. */
  word-break: break-word;
}
.tml-contact-direct a:hover { text-decoration: underline; }
.tml-contact-privacy {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ui-text-faint);
}

/* --- Form --- */
.tml-form {
  background: var(--tml-white);
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  padding: 32px;
}
.tml-field { margin-bottom: 20px; }
.tml-field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--weight-bold);
  color: var(--tml-dark);
  margin-bottom: 7px;
}
.tml-field input,
.tml-field select,
.tml-field textarea {
  width: 100%;
  border: 1.5px solid var(--ui-border-lilac);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: var(--fs-lg);
  color: var(--tml-dark);
  background: var(--tml-white);
}
.tml-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.tml-field input:focus,
.tml-field select:focus,
.tml-field textarea:focus {
  border-color: var(--tml-purple-mid);
  outline: none;
}
.tml-field-hint {
  font-size: var(--fs-xs);
  color: var(--ui-text-faint);
  margin-top: 6px;
}

/* Honeypot. Not display:none — some bots skip hidden fields, and screen
   readers are handled by aria-hidden plus tabindex instead. */
.tml-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tml-form .tml-btn { width: 100%; justify-content: center; font-size: var(--fs-lg); padding: 15px 28px; }

/* Success state replaces the form in place. */
.tml-form-success {
  background: var(--tml-purple-light);
  border-radius: 14px;
  padding: 40px 32px;
  text-align: center;
}
.tml-form-success h2 {
  font-size: var(--fs-display-3);
  color: var(--tml-purple);
  margin-bottom: 12px;
}
.tml-form-success p {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ui-text);
}
.tml-form-error {
  font-size: var(--fs-md);
  color: #9a3412;
  background: #fdf0e9;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* ============ RESOURCES ==================================================
   A multi-item container. One card now; each is a peer in a plain list. */
.tml-resources { padding: 48px 0 96px; }

.tml-resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
}

/* Card: description on the left, download action on the right — collapses to
   stacked on mobile via mobile.css. */
.tml-resource {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--tml-white);
  border: 1px solid var(--ui-border);
  border-top: 4px solid var(--tml-purple);
  border-radius: 12px;
  padding: 32px;
}
/* min-width:0 lets the text column shrink and wrap inside the grid rather
   than forcing the download button off the card. */
.tml-resource-body { min-width: 0; }
.tml-resource-title {
  font-size: var(--fs-display-2);
  line-height: 1.2;
  color: var(--tml-dark);
  margin-bottom: 12px;
  max-width: 24ch;
}
.tml-resource-desc {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ui-text);
  max-width: 60ch;
}
.tml-resource-action { flex: none; }
.tml-resource-action .tml-btn { white-space: nowrap; }

/* ============ LEGAL / PRIVACY ============================================
   A plain text-content page (privacy policy). Built on the same tokens as
   the rest of the site, but deliberately one step down from the marketing
   tml-prose scale: legal copy is read closely, not scanned, so the body is
   fs-lg (not fs-2xl) and the section heads are modest. Headings, lists, and
   the source document's horizontal rules (rendered as <hr> section breaks)
   all live here so the page needs no component beyond a reading column. */
.tml-legal {
  max-width: 760px;
  padding-bottom: 32px;
}
.tml-legal-effective {
  font-size: var(--fs-md);
  font-weight: var(--weight-bold);
  color: var(--tml-purple-mid);
  margin-bottom: 28px;
}
.tml-legal h2 {
  font-size: var(--fs-display-2);
  line-height: 1.2;
  color: var(--tml-dark);
  margin: 44px 0 14px;
}
.tml-legal p {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--ui-text);
}
.tml-legal p + p { margin-top: 16px; }
.tml-legal ul {
  margin: 14px 0;
  padding-left: 22px;
  list-style: disc;
}
.tml-legal li {
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: var(--ui-text);
  margin-bottom: 8px;
}
.tml-legal li::marker { color: var(--tml-purple-pale); }
.tml-legal strong { color: var(--tml-dark); font-weight: var(--weight-bold); }
.tml-legal em { color: var(--tml-dark); font-style: italic; }
.tml-legal a { color: var(--tml-purple); font-weight: var(--weight-bold); }
.tml-legal a:hover { text-decoration: underline; }
.tml-legal hr {
  border: 0;
  border-top: 1px solid var(--ui-border);
  margin: 36px 0;
}
/* The closing good-faith note — quieter than the body it follows. */
.tml-legal-close { color: var(--ui-text-faint); }
.tml-legal-close em { color: var(--ui-text-faint); }
