@import "./tokens.css";

:root,
.toads-theme {
  --t-bg: #181818;
  --t-surface: #1f1f1f;
  --t-surface-2: #363636;
  --t-text: #f4f0ea;
  --t-text-strong: #ffffff;
  --t-text-dim: #a6a6a6;
  --t-accent: #38c400;
  --t-rule: rgba(255, 255, 255, 0.18);
  --t-shell: 1064px;
  --t-shell-wide: 1280px;
  --t-shell-action: 1094px;
  --t-pad-x: clamp(18px, 4vw, 44px);
  --t-section-gap: 100px;
  --t-service-icon-size: 30.8px;
  --t-inline-icon-size: 26.4px;
  --t-font-body: "Montserrat", sans-serif;
  --t-font-display: "Montserrat", sans-serif;
  --t-font-editorial: "Proxima Nova", "Avenir Next", "Helvetica Neue", sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--t-bg);
  color: var(--t-text);
  font-family: var(--t-font-body);
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.t-shell {
  width: min(calc(100% - (var(--t-pad-x) * 2)), var(--t-shell));
  margin-inline: auto;
}

.t-shell--wide {
  width: min(calc(100% - (var(--t-pad-x) * 2)), var(--t-shell-wide));
  margin-inline: auto;
}

.t-shell--action {
  width: min(calc(100% - (var(--t-pad-x) * 2)), var(--t-shell-action));
  margin-inline: auto;
}

.t-site-header {
  padding-top: 10px;
  margin-bottom: 34px;
}

.t-header-inner {
  position: relative;
  width: min(calc(100% - (var(--t-pad-x) * 2)), var(--t-shell));
  min-height: 75px;
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.t-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.t-brand__logo {
  width: 256px;
  height: auto;
}

.t-header-utility {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.t-header-link {
  color: var(--t-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-decoration: none;
  white-space: nowrap;
}

.t-header-link--accent,
.t-text-link--accent,
.t-find__phone {
  color: var(--t-accent);
}

.t-header-menu {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--t-text);
  cursor: pointer;
}

.t-header-menu::before,
.t-header-menu::after,
.t-header-menu span {
  content: "";
  position: absolute;
  left: 50%;
  width: 29px;
  height: 1.75px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.t-header-menu::before {
  top: calc(50% - 8px);
}

.t-header-menu span {
  top: 50%;
  transform: translate(-50%, -50%);
}

.t-header-menu::after {
  top: calc(50% + 8px);
}

.t-header-inner[data-menu-open="true"] .t-header-menu::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.t-header-inner[data-menu-open="true"] .t-header-menu span {
  opacity: 0;
}

.t-header-inner[data-menu-open="true"] .t-header-menu::after {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.t-page {
  min-height: 100vh;
}

.t-main {
  display: flex;
  flex-direction: column;
  gap: var(--t-section-gap);
  padding-bottom: 30px;
}

.t-section {
  margin: 0;
}

.t-section-label {
  margin: 0;
  color: var(--t-text-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.28px;
  text-transform: uppercase;
}

.t-section-intro,
.t-story__intro,
.t-service-bucket__summary,
.t-process-copy p,
.t-find__summary,
.t-map-item p,
.t-text-link,
.t-hero__proof-meta p {
  margin: 0;
  color: var(--t-text-dim);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08px;
}

.t-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.t-hero__media,
.t-support-photo,
.t-story-photo,
.t-find-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--t-surface-2);
}

.t-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(5deg, rgba(0, 0, 0, 0.5) 15.546%, rgba(102, 102, 102, 0.1) 37.67%);
  pointer-events: none;
}

.t-hero__media img {
  width: 100%;
  height: 648px;
  object-fit: cover;
}

.t-hero__media figcaption,
.t-support-photo figcaption,
.t-story-photo figcaption,
.t-find-photo figcaption {
  display: none;
}

.t-hero__content {
  display: grid;
  grid-template-columns: 520px minmax(0, 473px);
  gap: 71px;
  align-items: end;
  margin-top: -99px;
  position: relative;
  z-index: 1;
}

.t-hero__headline h1 {
  margin: 0;
  color: var(--t-text-strong);
  font-family: var(--t-font-display);
  font-size: 72px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.72px;
}

.t-hero__proof {
  position: relative;
  display: grid;
  gap: 12px;
  width: 473px;
  padding-top: 44px;
  padding-bottom: 20px;
}

.t-hero__proof::before,
.t-hero__proof::after {
  content: "";
  position: absolute;
  left: 0;
}

.t-hero__proof::before {
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--t-text-strong);
}

.t-hero__proof::after {
  bottom: 0;
  width: 87px;
  height: 1px;
  background: var(--t-rule);
}

.t-hero__proof-lead {
  margin: 0;
  width: 190px;
  color: var(--t-text-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.28px;
  text-transform: uppercase;
}

.t-hero__proof-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.t-section--handle .t-shell {
  display: block;
}

.t-handle__layout {
  display: grid;
  grid-template-columns: 490px minmax(0, 474px);
  column-gap: 100px;
  row-gap: 60px;
  align-items: start;
}

.t-handle__intro {
  display: grid;
  gap: 12px;
  max-width: 208px;
  grid-column: 1;
  grid-row: 1;
}

.t-handle__services-wrap {
  display: grid;
  gap: 60px;
  grid-column: 1;
  grid-row: 2;
}

.t-handle__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
}

.t-service-bucket {
  display: grid;
  gap: 25px;
  align-content: start;
}

.t-service-icon {
  display: inline-flex;
  width: var(--t-service-icon-size);
  height: var(--t-service-icon-size);
  color: var(--t-accent);
}

.t-service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-service-bucket h3 {
  margin: 0;
  color: var(--t-text-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.28px;
  text-transform: uppercase;
}

.t-support-photo--diagnostic {
  grid-column: 2;
  grid-row: 2;
}

.t-support-photo--process {
  grid-column: 2;
  grid-row: 4;
}

.t-support-photo--diagnostic img {
  width: 100%;
  aspect-ratio: 474 / 396;
  object-fit: cover;
}

.t-support-photo--process img {
  width: 100%;
  aspect-ratio: 474 / 378;
  object-fit: cover;
}

.t-process-block {
  display: grid;
  gap: 25px;
  align-content: start;
  grid-column: 1;
  grid-row: 4;
}

.t-process-text {
  display: grid;
  gap: 12px;
  max-width: 212px;
}

.t-process-copy {
  display: grid;
  gap: 12px;
}

.t-section--story .t-shell {
  display: block;
}

.t-story__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 319px minmax(0, 1fr);
  gap: 100px;
  align-items: center;
}

.t-story__copy {
  display: grid;
  gap: 22px;
  align-content: center;
}

.t-story__media {
  min-width: 0;
}

.t-story-photo img {
  width: 100%;
  aspect-ratio: 319 / 385;
  object-fit: cover;
}

.t-story__statement h2,
.t-find__copy h2 {
  margin: 0;
  color: var(--t-text);
  font-family: var(--t-font-editorial);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.56px;
}

.t-section--action .t-shell {
  display: grid;
  gap: 120px;
}

.t-find__layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 567px);
  gap: 100px;
  align-items: center;
}

.t-find__copy {
  display: grid;
  gap: 40px;
}

.t-find__summary {
  max-width: 100%;
}

.t-find__links {
  display: grid;
  justify-items: start;
}

.t-find__phone {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.6px;
  text-decoration: none;
}

.t-inline-icon {
  display: inline-flex;
  width: var(--t-inline-icon-size);
  height: var(--t-inline-icon-size);
  flex: 0 0 var(--t-inline-icon-size);
  color: currentColor;
}

.t-inline-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-find-photo img {
  width: 100%;
  aspect-ratio: 567 / 503;
  object-fit: cover;
}

.t-action__footer {
  display: grid;
  gap: 33px;
}

.t-map-frame {
  overflow: hidden;
  background: var(--t-surface-2);
}

.t-map-frame a {
  display: block;
}

.t-map-frame img {
  width: 100%;
  aspect-ratio: 1094 / 388;
  object-fit: cover;
}

.t-site-footer {
  display: grid;
  gap: 33px;
}

.t-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 120px;
  align-items: start;
}

.t-map-item {
  display: grid;
  gap: 4px;
  color: var(--t-text-dim);
}

.t-map-item--with-icon {
  grid-template-columns: var(--t-inline-icon-size) minmax(0, 1fr);
  gap: 0 30px;
  align-items: start;
}

.t-map-item__body {
  display: grid;
  gap: 4px;
}

.t-text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.t-footer__brand {
  display: flex;
  justify-content: flex-end;
}

.t-lockup {
  display: inline-flex;
  align-items: center;
}

.t-lockup img {
  width: 100%;
  height: auto;
}

.t-lockup--footer {
  width: 234px;
}

.t-noscript-note {
  margin: 0;
  padding: 24px var(--t-pad-x);
  color: var(--t-text-dim);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.08px;
}

@media (max-width: 960px) {
  :root,
  .toads-theme {
    --t-pad-x: clamp(16px, 7vw, 32px);
    --t-section-gap: 60px;
  }

  .t-site-header {
    margin-bottom: 20px;
  }

  .t-header-inner {
    min-height: 70px;
    align-items: center;
  }

  .t-brand__logo {
    width: 240px;
  }

  .t-header-utility {
    display: none;
  }

  .t-header-inner[data-menu-open="true"] .t-header-utility {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: grid;
    gap: 10px;
    min-width: 232px;
    padding: 16px 18px;
    background: var(--t-surface);
    border: 1px solid var(--t-rule);
    z-index: 20;
  }

  .t-header-inner[data-menu-open="true"] .t-header-link {
    line-height: 1.45;
    white-space: normal;
  }

  .t-header-menu {
    display: inline-flex;
  }

  .t-hero__media img {
    height: 195px;
  }

  .t-hero__content {
    grid-template-columns: 1fr;
    gap: 52px;
    margin-top: -25px;
    padding-bottom: 20px;
  }

  .t-hero__headline h1 {
    max-width: 365px;
    font-size: 48px;
    letter-spacing: -0.48px;
  }

  .t-hero__proof {
    width: min(100%, 265px);
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .t-hero__proof-lead {
    width: 100%;
  }

  .t-handle__layout {
    grid-template-columns: 1fr;
    row-gap: 52px;
  }

  .t-handle__intro,
  .t-process-text {
    max-width: none;
  }

  .t-handle__intro,
  .t-handle__services-wrap,
  .t-support-photo--diagnostic,
  .t-process-block,
  .t-support-photo--process {
    grid-column: 1;
    grid-row: auto;
  }

  .t-handle__services {
    gap: 40px;
  }

  .t-support-photo--diagnostic img {
    aspect-ratio: 380 / 282;
  }

  .t-support-photo--process img {
    aspect-ratio: 380 / 287;
  }

  .t-story__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .t-story-photo img {
    aspect-ratio: 380 / 271;
  }

  .t-story__statement h2,
  .t-find__copy h2 {
    font-size: 48px;
    letter-spacing: -0.48px;
  }

  .t-section--action .t-shell {
    gap: 44px;
  }

  .t-find__layout {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .t-find__media {
    order: 1;
  }

  .t-find__copy {
    order: 2;
    gap: 22px;
  }

  .t-find-photo img {
    aspect-ratio: 380 / 285;
  }

  .t-map-frame img {
    aspect-ratio: 380 / 236;
  }

  .t-footer__meta {
    flex-direction: column;
    gap: 22px;
  }

  .t-footer__brand {
    justify-content: center;
  }

  .t-lockup--footer {
    width: 173px;
  }
}

@media (max-width: 640px) {
  .t-header-inner {
    gap: 16px;
  }

  .t-hero__headline h1,
  .t-story__statement h2,
  .t-find__copy h2 {
    max-width: 100%;
    text-wrap: pretty;
  }

  .t-handle__services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
