/* Contact V1 geometry adapted to the canonical Components V2 tokens. */
.ta-contact-page {
  --font-geist-sans: var(--ta-font-sans);
  --font-geist-mono: var(--ta-font-mono);
  --text-scale: 1.2;
  --theme-accent: var(--ta-accent);
  --theme-accent-border: color-mix(in srgb, var(--ta-accent) 58%, var(--ta-line));
  --theme-accent-copy: var(--ta-accent-strong);
  --theme-accent-surface: color-mix(in srgb, var(--ta-accent) 14%, transparent);
  --theme-canvas: var(--ta-canvas);
  --theme-copy: var(--ta-copy);
  --theme-copy-muted: var(--ta-muted);
  --theme-copy-secondary: var(--ta-copy);
  --theme-grid-line: var(--ta-mesh-line);
  --theme-link: var(--ta-accent-strong);
  --theme-rule: var(--ta-line);
  --theme-rule-soft: color-mix(in srgb, var(--ta-line) 64%, transparent);
  --theme-success-copy: var(--ta-success);
  --theme-surface-deep: var(--ta-surface-alt);
  --theme-surface-input: var(--ta-canvas);
  --theme-surface-translucent: color-mix(in srgb, var(--ta-surface-alt) 83%, transparent);
  --theme-text: var(--ta-text);
}

html[data-text-size="small"] .ta-contact-page { --text-scale: 1; }
html[data-text-size="large"] .ta-contact-page { --text-scale: 1.4; }

/* The compact V1 public header, using the V2 brand and theme controls. */
.ta-contact-site-header { min-height: 7rem; position: relative; z-index: 90; border-bottom: 1px solid var(--ta-line); background: var(--ta-canvas); color: var(--ta-text); }
.ta-contact-site-header__inner { width: min(1180px, calc(100% - 48px)); min-height: 7rem; display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; }
.ta-contact-brand { flex: 0 0 auto; gap: .75rem; }
.ta-contact-brand .ta-brand__mark { width: 2.625rem; height: 2.625rem; flex-basis: 2.625rem; }
.ta-contact-brand .ta-brand__copy { display: flex; flex-direction: column; gap: 4px; font-family: Arial, Helvetica, sans-serif; }
.ta-contact-brand .ta-brand__copy strong { font: 700 16px/24px Arial, Helvetica, sans-serif; letter-spacing: 1.76px; }
.ta-contact-brand .ta-brand__copy small { font: 400 10px/15px Arial, Helvetica, sans-serif; letter-spacing: 2.8px; }
.ta-contact-site-header__tools { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-left: auto; }
.ta-contact-site-header .ta-theme-picker { gap: 12px; }
.ta-contact-site-header .ta-theme-menu, .ta-contact-site-header .ta-theme-menu__trigger { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.ta-contact-site-header .ta-text-size-picker { width: 194.8125px; height: 44px; }
.ta-contact-site-header .ta-text-size-picker::before { content: "TEXT"; width: 62.8125px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ta-line-strong); border-right: 0; color: var(--ta-muted); font: 400 10px/1 var(--ta-font-mono); letter-spacing: .08em; }
.ta-contact-site-header .ta-text-size-picker button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
.ta-contact-header-action { min-width: 9rem; height: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: 0 1rem; border: 1px solid var(--ta-line-strong); border-radius: 0; background: transparent; color: var(--ta-text); font: 400 .75rem/1 var(--ta-font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.ta-contact-header-action:hover, .ta-contact-menu[open] > .ta-contact-menu__trigger { border-color: var(--ta-accent); background: var(--ta-surface-hover); }
.ta-contact-story-form { margin: 0; }
.ta-contact-menu { width: 84px; height: 48px; position: relative; margin-left: 16px; }
.ta-contact-menu__trigger { width: 84px; min-width: 84px; height: 48px; min-height: 48px; padding-inline: 12px; }
.ta-contact-menu__icon { width: 1.25rem; display: grid; gap: .25rem; }
.ta-contact-menu__icon i { height: 2px; display: block; background: currentColor; }
.ta-contact-menu__menu { width: min(23rem, calc(100vw - 1.875rem)); max-height: calc(100dvh - 8.25rem); top: calc(100% + 2rem); right: 0; left: auto; margin-top: 0; overflow-y: auto; }
.ta-contact-site-header .ta-theme-menu__menu { top: calc(100% + 2.4375rem); margin-top: 0; }
.ta-contact-menu__menu > a { min-height: 3.75rem; }

.ta-contact-page {
  min-height: 70vh;
  padding: 28px 0 72px;
  overflow: hidden;
  background-color: var(--theme-canvas);
  background-image:
    radial-gradient(circle at 62% 22%, color-mix(in srgb, var(--theme-accent) 9%, transparent), transparent 31%),
    linear-gradient(var(--theme-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--theme-grid-line) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  color: var(--theme-text);
}

.ta-contact-page > .ta-shell { width: min(1180px, calc(100% - 48px)); max-width: none; }
.ta-contact-shell { display: grid; gap: 18px; }
.ta-contact-page .ta-eyebrow { line-height: 1.35; letter-spacing: .16em; }
.ta-contact-page .ta-badge { padding-inline: 10px; letter-spacing: .08em; }

.ta-contact-hero {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  min-height: 320px;
  padding: 18px;
  gap: 18px;
  background: var(--theme-surface-deep);
}

.ta-contact-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px 42px;
}

.ta-contact-hero-copy > .ta-eyebrow { margin: 0; }
.ta-contact-hero-copy h1 { margin: 18px 0 10px; font-size: clamp(31px, 3.8vw, 49px); font-weight: 450; line-height: 1.05; letter-spacing: -.04em; }
.ta-contact-hero-lead { margin: 0; color: var(--theme-copy); font-size: calc(15px * var(--text-scale)); line-height: 1.6; }
.ta-contact-hero-lead a { color: var(--theme-link); font-size: 1.15em; font-weight: 650; text-underline-offset: 4px; }
.ta-contact-hero-lead a:hover, .ta-contact-hero-lead a:focus-visible { color: var(--theme-accent); }

.ta-contact-content-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ta-contact-about, .ta-contact-form-panel { min-width: 0; background: var(--theme-surface-translucent); }
.ta-contact-about, .ta-contact-form-panel { padding: 32px; }
.ta-contact-about h2 { margin: 12px 0 9px; font-size: clamp(25px, 2.5vw, 34px); font-weight: 480; line-height: 1.2; letter-spacing: -.035em; }
.ta-contact-accent-rule { display: block; width: 34px; height: 2px; margin: 0 0 20px; background: var(--theme-accent); box-shadow: 40px 0 0 var(--theme-rule); }
.ta-contact-about > p:not(:first-child) { margin: 0 0 16px; color: var(--theme-copy); font-size: calc(12px * var(--text-scale)); line-height: 1.65; }
.ta-contact-signature { display: grid; justify-items: start; margin: 22px 0 0; }
.ta-contact-signature > span { color: var(--theme-text); font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 36px; font-style: italic; line-height: 1; transform: rotate(-4deg); }
.ta-contact-signature strong { margin-top: 9px; color: var(--theme-accent); font-size: calc(11px * var(--text-scale)); font-weight: 600; line-height: 1.5; }
.ta-contact-signature small { margin-top: 3px; color: var(--theme-copy-muted); font-size: calc(10px * var(--text-scale)); line-height: 1.5; }
.ta-contact-personal-site { margin-top: 10px; color: var(--theme-link); font-family: var(--font-geist-mono), monospace; font-size: calc(10px * var(--text-scale)); line-height: 1.5; letter-spacing: .04em; text-decoration: none; }
.ta-contact-personal-site:hover, .ta-contact-personal-site:focus-visible { color: var(--theme-accent); text-decoration: underline; text-underline-offset: 4px; }

.ta-contact-form-panel > p { margin: 0 0 18px; }
.ta-contact-form { display: grid; gap: 17px; }
.ta-contact-form .ta-form-grid { gap: 15px 14px; }
.ta-contact-form .ta-form-grid > .ta-field:nth-child(3) { row-gap: 10px; }
.ta-contact-form .ta-field > span { color: var(--theme-text); font-family: var(--font-geist-sans), sans-serif; font-size: calc(11px * var(--text-scale)); font-weight: 550; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.ta-contact-form .ta-field > span small { display: inline; color: var(--theme-copy-muted); font-size: inherit; }
.ta-contact-form .ta-input, .ta-contact-form .ta-textarea { font-size: calc(12px * var(--text-scale)); }
.ta-contact-form .ta-input { height: 44px; padding-inline: 13px; line-height: 1.45; }
.ta-contact-form .ta-textarea { min-height: 96px; padding: 13px; line-height: 1.55; }
.ta-contact-character-count { justify-self: end; margin-top: -27px; padding: 0 9px 9px; font: calc(11px * var(--text-scale))/1.45 var(--font-geist-mono), monospace; }
.ta-contact-form button { gap: 10px; text-transform: uppercase; letter-spacing: .08em; }
.ta-contact-form button > span { font-size: 19px; }
.ta-contact-form > .ta-button--large { height: 44px; min-height: 44px; padding: 0 21px; line-height: 1.2; }
.ta-contact-form-status { margin: 0; color: var(--theme-copy-muted); font-size: calc(10px * var(--text-scale)); line-height: 1.5; }
.ta-contact-form-status:not(:empty) { color: var(--theme-success-copy); }

.ta-contact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Components footer content, arranged with the exact V1 public-footer geometry. */
.ta-contact-app .ta-app-footer { padding: 58px 0; background: var(--ta-canvas); }
.ta-contact-app .ta-app-footer__inner { width: min(1180px, calc(100% - 48px)); max-width: none; min-height: 213.203125px; position: relative; grid-template-columns: minmax(220px, .8fr) minmax(420px, 1.4fr); align-items: start; gap: 40px; }
.ta-contact-app .ta-app-footer__identity { display: block; min-width: 0; }
.ta-contact-app .ta-app-footer__identity .ta-brand { min-height: 0; display: inline-flex; margin: 0 0 18px; gap: var(--ta-space-3); font: 700 var(--ta-text-sm)/1 var(--ta-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.ta-contact-app .ta-app-footer__identity .ta-brand__mark { width: 2.775rem; height: 2.775rem; flex-basis: 2.775rem; }
.ta-contact-app .ta-app-footer__identity .ta-brand__copy { gap: var(--ta-space-1); }
.ta-contact-app .ta-app-footer__identity .ta-brand__copy strong { color: var(--ta-text); font: 900 var(--ta-text-lg)/1 var(--ta-font-mono); letter-spacing: 1.12px; text-transform: uppercase; }
.ta-contact-app .ta-app-footer__identity .ta-brand__copy small { color: #fff; font: 400 var(--ta-text-xs)/1 var(--ta-font-mono); letter-spacing: .04em; text-transform: none; }
.ta-contact-app .ta-app-footer__identity > small:not(.ta-app-footer__copyright) { display: block; color: var(--ta-muted); font: 400 14.4px/21.6px Arial, Helvetica, sans-serif; }
.ta-contact-app .ta-app-footer__links { min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 14px 24px; color: var(--ta-muted); font: 400 15.6px/21.06px Arial, Helvetica, sans-serif; text-transform: none; }
.ta-contact-app .ta-app-footer__links a { min-height: 44px; display: inline-flex; align-items: center; }
.ta-contact-app .ta-app-footer__copyright { width: 100%; position: absolute; left: 0; bottom: 0; margin: 0; color: var(--ta-muted); font: 400 13.2px/13.2px var(--ta-font-mono); text-align: right; }

@media (max-width: 1080px) {
  .ta-contact-hero { grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr); }
}

@media (max-width: 820px) {
  .ta-contact-page { padding-top: 18px; }
  .ta-contact-hero { grid-template-columns: 1fr; }
  .ta-contact-hero-copy { padding: 26px 18px 24px; }
}

@media (max-width: 900px) {
  .ta-contact-app .ta-app-footer__inner { min-height: 510.8125px; grid-template-columns: 1fr; }
  .ta-contact-app .ta-app-footer__links { justify-content: flex-start; }
  .ta-contact-app .ta-app-footer__copyright { text-align: left; }
}

@media (max-width: 38.75rem) {
  .ta-contact-site-header { min-height: 5.125rem; }
  .ta-contact-site-header__inner { width: min(1180px, calc(100% - 30px)); min-height: 5.125rem; gap: .625rem; }
  .ta-contact-page > .ta-shell { width: min(1180px, calc(100% - 30px)); }
  .ta-contact-brand { gap: .5rem; }
  .ta-contact-brand .ta-brand__mark { width: 2.25rem; height: 2.25rem; flex-basis: 2.25rem; }
  .ta-contact-brand .ta-brand__copy strong { font-size: 13px; line-height: 19.5px; letter-spacing: .91px; }
  .ta-contact-brand .ta-brand__copy small, .ta-contact-site-header .ta-text-size-picker, .ta-contact-story-form { display: none; }
  .ta-contact-site-header__tools { gap: .5rem; }
  .ta-contact-menu { width: 84px; margin-left: 0; }
  .ta-contact-menu__trigger { width: 84px; min-width: 84px; min-height: 48px; padding-inline: .75rem; }
  .ta-contact-menu__menu { max-height: calc(100dvh - 6.25rem); }
  .ta-contact-app .ta-app-footer__inner { width: min(1180px, calc(100% - 30px)); }
}

@media (max-width: 560px) {
  .ta-contact-about, .ta-contact-form-panel { padding: 24px 20px; }
  .ta-contact-hero { padding: 8px; }
  .ta-contact-hero-copy h1 { font-size: 34px; }
  .ta-contact-form .ta-form-grid { grid-template-columns: 1fr; }
  .ta-contact-form .ta-form-grid > .ta-field:nth-child(3) { row-gap: 8px; }
  .ta-contact-form .ta-form-grid > .ta-field--wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ta-contact-signature > span { transform: none; }
}
