/* Readable spacing and responsive composition within the existing TC brand. */
html:root:not(.brand-calculator) {
  --site-gutter: clamp(20px, 4.5vw, 72px);
  --section-space: clamp(64px, 8vw, 120px);
  /* Keep native anchor jumps instant, avoiding long Safari repaints across the sticky atelier. */
  scroll-behavior: auto;
}

html:root:not(.brand-calculator) .wrap {
  width: min(1440px, calc(100% - 2 * var(--site-gutter)));
}

html:root:not(.brand-calculator) section[id] {
  scroll-margin-top: 28px;
}

html:root:not(.brand-calculator) :is(a, button, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

html:root:not(.brand-calculator) header.wrap {
  gap: 24px;
}

html:root:not(.brand-calculator) header #site-nav {
  gap: clamp(14px, 2vw, 30px);
}

html:root:not(.brand-calculator) header #site-nav a {
  font-size: 13px;
  line-height: 1.5;
}

@media (width > 900px) {
  html:root:not(.brand-calculator) header #site-nav a {
    padding-block: 7px;
    border-bottom: 1px solid transparent;
    column-gap: 0.3em;
  }

  html:root:not(.brand-calculator) header #site-nav a:last-child {
    border-bottom-color: var(--fg);
  }

  html:root:not(.brand-calculator) header #site-nav sup {
    transform: translateY(-0.35em);
  }
}

html:root:not(.brand-calculator) .hero-copy h1 {
  line-height: 1.04;
  letter-spacing: -0.035em;
}

html:root:not(.brand-calculator) :is(.section-heading h2, .contact h2) {
  line-height: 1.12;
  letter-spacing: -0.03em;
}

html:root:not(.brand-calculator) :is(.hero-copy > p, .intro-bottom > p, .section-heading > p) {
  max-width: 58ch;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
}

html:root:not(.brand-calculator) :is(.meta, .hero-coordinates, .hero-caption, .section-heading > .mono, .cover-top, .cover-bottom, .contact-intro > .mono, .contact-kicker) {
  font-size: 11px;
  line-height: 1.6;
}

html:root:not(.brand-calculator) .intro-bottom {
  gap: 24px 40px;
  padding-block: 16px 32px;
}

html:root:not(.brand-calculator) .intro-bottom > .mono {
  font-size: 11px;
  line-height: 1.7;
}

html:root:not(.brand-calculator) :is(.work, .approach) {
  padding-block: var(--section-space);
}

html:root:not(.brand-calculator) .section-heading {
  align-items: end;
  gap: 20px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

html:root:not(.brand-calculator) .project-info {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  padding-block: 22px 36px;
}

html:root:not(.brand-calculator) .project-info h3 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

html:root:not(.brand-calculator) .work-note {
  font-size: 12px;
  line-height: 1.7;
}

html:root:not(.brand-calculator) .service-layout {
  align-items: center;
}

html:root:not(.brand-calculator) .service-layout .services details > p {
  max-width: 58ch;
  margin-block: 0 28px;
  font-size: 17px;
  line-height: 1.7;
}

html:root:not(.brand-calculator) .service-start {
  margin-top: 28px;
}

html:root:not(.brand-calculator) :is(.service-start h3, .art-copy h3, .transmitter-core strong) {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

html:root:not(.brand-calculator) :is(.service-cta, .other-work > a) {
  min-height: 44px;
  font-size: 12px;
  line-height: 1.6;
}

html:root:not(.brand-calculator) .contact-grid {
  align-items: center;
}

html:root:not(.brand-calculator) .contact-intro > p {
  max-width: 48ch;
  font-size: 18px;
  line-height: 1.7;
}

html:root:not(.brand-calculator) .footer-intro p {
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 1050px) {
  html:root:not(.brand-calculator) .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  html:root:not(.brand-calculator) .contact-transmitter {
    width: 100%;
    max-width: 600px;
  }

  html:root:not(.brand-calculator) .contact-kicker {
    margin-top: 32px;
  }

  html:root:not(.brand-calculator) .contact h2 {
    font-size: clamp(56px, 8vw, 90px);
    margin-bottom: 28px;
  }
}

@media (max-width: 900px) {
  html:root:not(.brand-calculator) header.wrap {
    position: relative;
    z-index: 30;
  }

  html:root:not(.brand-calculator) .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  html:root:not(.brand-calculator) header #site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--surface-menu);
    border: 1px solid var(--line);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--brand-ink) 10%, transparent);
  }

  html:root:not(.brand-calculator) header #site-nav.is-open {
    display: flex;
  }

  html:root:not(.brand-calculator) header #site-nav a {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  html:root:not(.brand-calculator) header #site-nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  html:root:not(.brand-calculator) .hero-copy h1 {
    font-size: clamp(56px, 18vw, 82px);
  }

  html:root:not(.brand-calculator) .intro-bottom {
    align-items: flex-start;
  }

  html:root:not(.brand-calculator) .service-layout .services details > p {
    margin-left: 0;
    font-size: 16px;
  }

  html:root:not(.brand-calculator) .contact h2 {
    font-size: clamp(46px, 13vw, 72px);
  }

  html:root:not(.brand-calculator) .contact-intro > p {
    font-size: 17px;
  }

  html:root:not(.brand-calculator) .footer-top {
    padding: 24px 20px;
  }
}
html:root:not(.brand-calculator) body:has(.story) .about-hero-grid {
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(40px, 6vw, 72px);
}

html:root:not(.brand-calculator) body:has(.story) .about-hero h1 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

html:root:not(.brand-calculator) body:has(.story) .about-hero p {
  max-width: 55ch;
  font-size: 17px;
  line-height: 1.75;
}

html:root:not(.brand-calculator) body:has(.story) .about-scroll {
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block: 22px;
  font-size: 11px;
  line-height: 1.5;
}

html:root:not(.brand-calculator) body:has(.story) .about-facts {
  padding-block: 64px 36px;
}

html:root:not(.brand-calculator) body:has(.story) .facts-heading > .mono {
  font-size: 11px;
}

html:root:not(.brand-calculator) body:has(.story) .facts-heading h2 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

html:root:not(.brand-calculator) body:has(.story) .facts-grid {
  gap: 16px;
}

html:root:not(.brand-calculator) body:has(.story) .fact-card {
  padding: 24px 20px;
}

html:root:not(.brand-calculator) body:has(.story) .fact-card > .mono {
  font-size: 10px;
  line-height: 1.5;
}

html:root:not(.brand-calculator) body:has(.story) .fact-card > strong {
  margin-top: 24px;
  font-size: clamp(54px, 5.2vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

html:root:not(.brand-calculator) body:has(.story) .fact-card > strong > span {
  font-size: 11px;
}

html:root:not(.brand-calculator) body:has(.story) .fact-card p {
  font-size: 14px;
  line-height: 1.6;
}

html:root:not(.brand-calculator) .story {
  --story-single-column: 0;
  padding-block: clamp(48px, 6vw, 88px) 32px;
}

html:root:not(.brand-calculator) .story .story-stop {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(60px, 8vw, 120px);
  padding: 48px 76px 96px;
  min-height: 0;
}

html:root:not(.brand-calculator) .story .story-content {
  width: 100%;
  max-width: 65ch;
}

html:root:not(.brand-calculator) .story .story-node {
  top: 52px;
  left: 12px;
  width: 36px;
  height: 36px;
  font-size: 10px;
}

html:root:not(.brand-calculator) .story .stop-right .story-node {
  left: auto;
  right: 12px;
}

html:root:not(.brand-calculator) .story .story-stop.is-reached .story-node {
  color: var(--brand-white);
}

html:root:not(.brand-calculator) .story .story-eyebrow {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

html:root:not(.brand-calculator) .story .story-content h2 {
  margin: 20px 0 24px;
  font-size: clamp(36px, 3.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

html:root:not(.brand-calculator) .story .story-content > p {
  max-width: 65ch;
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.75;
}

html:root:not(.brand-calculator) .story .story-content > p.story-lead {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

html:root:not(.brand-calculator) .story .story-content > p.story-quote {
  margin-block: 28px;
  padding: 6px 0 6px 22px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

html:root:not(.brand-calculator) .story .story-content > p.future-aside {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.4;
}

html:root:not(.brand-calculator) .story .story-margin {
  top: 140px;
  right: 76px;
  max-width: 26ch;
  font-size: 10px;
  line-height: 1.7;
}

html:root:not(.brand-calculator) .story .stop-right .story-margin {
  right: auto;
  left: 76px;
}

html:root:not(.brand-calculator) .story .project-tickets {
  gap: 10px;
  margin-top: 28px;
}

html:root:not(.brand-calculator) .story .project-tickets a {
  flex: 1 1 150px;
  padding: 16px;
}

html:root:not(.brand-calculator) .story .project-tickets .mono {
  font-size: 10px;
  line-height: 1.5;
  white-space: normal;
}

html:root:not(.brand-calculator) .story .project-tickets strong {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  white-space: normal;
}

html:root:not(.brand-calculator) .story .process-chain {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-block: 28px;
  font-size: 12px;
  line-height: 1.5;
}

html:root:not(.brand-calculator) .story .experience-board {
  gap: 12px;
}

html:root:not(.brand-calculator) .story .experience-card > .mono,
html:root:not(.brand-calculator) .story .experience-card small {
  font-size: 10px;
  line-height: 1.5;
}

html:root:not(.brand-calculator) .story .experience-card strong {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

html:root:not(.brand-calculator) .story .tool-labels {
  gap: 8px;
  margin-top: 28px;
}

html:root:not(.brand-calculator) .story .tool-labels span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.4;
}

html:root:not(.brand-calculator) .story .tool-labels .current-tool {
  background: color-mix(in srgb, var(--brand-violet) 8%, var(--brand-white));
  color: var(--brand-violet);
  border: 1px solid var(--brand-violet);
  font-weight: 600;
}

html:root:not(.brand-calculator) body:has(.story) .about-end {
  padding: 54px 0 64px;
}

html:root:not(.brand-calculator) body:has(.story) .about-end > .mono {
  font-size: 11px;
}

html:root:not(.brand-calculator) body:has(.story) .about-end h2 {
  margin-block: 28px;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

@media (max-width: 1050px) {
  html:root:not(.brand-calculator) .story {
    --story-single-column: 1;
    width: min(760px, calc(100% - 48px));
    padding-block: 40px 16px;
  }

  html:root:not(.brand-calculator) .story .story-stop {
    display: block;
    padding: 36px 0 60px 68px;
  }

  html:root:not(.brand-calculator) .story .story-node,
  html:root:not(.brand-calculator) .story .stop-right .story-node {
    top: 40px;
    left: 8px;
    right: auto;
  }

  html:root:not(.brand-calculator) .story .story-margin {
    display: none;
  }

  html:root:not(.brand-calculator) .story .story-content h2 {
    font-size: clamp(36px, 4.5vw, 46px);
  }
}

@media (max-width: 850px) {
  html:root:not(.brand-calculator) body:has(.story) .about-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  html:root:not(.brand-calculator) body:has(.story) .identity-art {
    width: min(78%, 340px);
    justify-self: center;
  }
}

@media (max-width: 600px) {
  html:root:not(.brand-calculator) body:has(.story) .about-hero p {
    font-size: 16px;
  }

  html:root:not(.brand-calculator) body:has(.story) .about-facts {
    padding-block: 44px 20px;
  }

  html:root:not(.brand-calculator) body:has(.story) .facts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  html:root:not(.brand-calculator) body:has(.story) .fact-card {
    display: grid;
    grid-template-columns: minmax(88px, 0.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px 16px;
    min-height: 0;
    padding: 20px;
  }

  html:root:not(.brand-calculator) body:has(.story) .fact-card > .mono {
    grid-column: 1 / -1;
  }

  html:root:not(.brand-calculator) body:has(.story) .fact-card > strong {
    display: block;
    margin: 0;
    font-size: 48px;
  }

  html:root:not(.brand-calculator) body:has(.story) .fact-card > strong > span {
    display: block;
    margin: 4px 0 0;
    font-size: 11px;
  }

  html:root:not(.brand-calculator) body:has(.story) .fact-card p {
    margin: 0;
  }

  html:root:not(.brand-calculator) .story {
    width: calc(100% - 32px);
    padding-block: 28px 8px;
  }

  html:root:not(.brand-calculator) .story .story-stop {
    padding: 28px 0 44px 48px;
  }

  html:root:not(.brand-calculator) .story .story-node,
  html:root:not(.brand-calculator) .story .stop-right .story-node {
    top: 31px;
    left: 0;
    width: 30px;
    height: 30px;
  }

  html:root:not(.brand-calculator) .story .story-eyebrow {
    font-size: 10px;
  }

  html:root:not(.brand-calculator) .story .story-content h2 {
    font-size: clamp(30px, 7vw, 38px);
    line-height: 1.14;
  }

  html:root:not(.brand-calculator) .story .story-content > p {
    font-size: 16px;
    line-height: 1.7;
  }

  html:root:not(.brand-calculator) .story .story-content > p.story-lead {
    font-size: 21px;
    line-height: 1.4;
  }

  html:root:not(.brand-calculator) .story .story-content > p.story-quote {
    padding-left: 16px;
    font-size: 21px;
    line-height: 1.45;
  }

  html:root:not(.brand-calculator) .story .story-content > p.future-aside {
    font-size: 21px;
    line-height: 1.4;
  }

  html:root:not(.brand-calculator) .story .experience-board {
    grid-template-columns: minmax(0, 1fr);
  }

  html:root:not(.brand-calculator) .story .first-client {
    flex-wrap: wrap;
    gap: 16px;
  }
}
