/* Shared details for the pages built around the homepage design. */
[hidden] {
  display: none !important;
}

/* Vector arrows keep the same appearance across fonts and mobile browsers. */
.icon-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.16em;
  flex-shrink: 0;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  height: 0.7em;
}

.hero-arrow .icon-arrow {
  stroke-width: 1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

button.button {
  border: 0;
  align-items: center;
  font-size: 14px;
}

header nav a {
  transition: color 160ms ease;
}

header nav a:hover,
header nav a[aria-current="page"]:not(.button) {
  color: var(--accent);
}

header nav a[aria-current="page"]:not(.button) {
  text-decoration: underline;
  text-underline-offset: 7px;
}

header nav .button[aria-current="page"] {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.skip:focus {
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-hero {
  padding: 30px 6% 25px;
  background: var(--dark);
  color: var(--paper);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #b6bfb4;
  font-size: 11px;
  margin-bottom: 48px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.page-hero > .eyebrow {
  color: var(--accent);
  margin-bottom: 22px;
}

.page-hero h1 {
  max-width: 1120px;
  font-size: clamp(42px, 5.6vw, 80px);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -2.5px;
  margin: 0 0 28px;
  text-wrap: balance;
}

.page-hero h1 span {
  color: var(--accent);
}

.page-lead {
  max-width: 700px;
  font-size: 19px;
  color: #c1c8be;
  margin: 0;
}

.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 30px;
}

.light-link {
  border-color: #c1c8be;
}

.page-hero-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff30;
  margin-top: 50px;
  padding-top: 20px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #aeb8ad;
}

.section h2 {
  margin-top: 16px;
}

.section p:not(.eyebrow),
figcaption {
  color: var(--muted);
}

.section .large-copy {
  font-size: 21px;
  color: var(--ink);
}

.soft-section {
  background: #e8e8e0;
}

.about-layout,
.editorial-split,
.service-showcase,
.product-intro,
.contact-layout,
.request-layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 8%;
}

.about-mark img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 20px;
  background: var(--dark);
}

.intro-logo {
  background: var(--dark);
}

.intro h2 {
  font-size: clamp(30px, 5.5vw, 48px);
}

.about-mark p {
  margin-top: 25px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 38px;
}

.feature-item {
  border-top: 1px solid #bfc4b7;
  padding-top: 25px;
}

.feature-item h3 {
  font-size: 26px;
  margin: 24px 0 14px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.plain-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  line-height: 1.7;
  color: var(--muted);
}

.plain-list strong {
  color: var(--ink);
}

.service-showcase,
.product-intro {
  align-items: center;
}

figure {
  margin: 0;
}

.service-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  font-size: 13px;
  line-height: 1.6;
  padding-top: 15px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 28px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.step-number {
  font-size: 12px;
  padding-top: 8px;
  color: var(--muted);
}

.steps h3 {
  font-size: 25px;
  margin: 0 0 10px;
}

.steps p {
  margin: 0;
}

.product-preview {
  padding: 28px;
  background: #e5e7de;
}

.product-pair.product-pair-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .product-pair.product-pair-three {
    grid-template-columns: 1fr;
  }
}

.product-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-preview img {
  max-width: 220px;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
}

.product-preview figcaption {
  text-align: center;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.screen-card {
  background: #e5e7de;
  min-width: 0;
}

.screen-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.screen-card > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
  padding: 24px;
}

.screen-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-card figcaption {
  padding: 0 28px 28px;
}

.screen-card h3 {
  margin: 10px 0;
  font-size: 25px;
  color: var(--ink);
}

.screen-card .under-link {
  color: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px 25px;
  margin: 32px 0;
}

.work-card {
  min-width: 0;
}

.work-card > img,
.work-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: top;
}

.work-media {
  display: block;
  background: #e5e7de;
}

.product-work img {
  object-fit: contain;
  padding: 15px;
}

.work-caption,
.work-card figcaption {
  padding-top: 20px;
}

.work-card h3 {
  font-size: 26px;
  color: var(--ink);
  margin: 12px 0;
}

.work-card p {
  margin: 10px 0;
}

.content-note {
  max-width: 850px;
  font-size: 14px;
}

/* Identical groups keep the reference band moving without a visible restart. */
.references-section {
  border-bottom: 1px solid var(--line);
}

.references-section .section-head {
  gap: 25px;
}

.reference-toggle {
  flex-shrink: 0;
  border: 1px solid var(--line);
  padding: 11px 16px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.reference-marquee {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 4%,
    black 96%,
    transparent
  );
}

.reference-track {
  display: flex;
  width: max-content;
  animation: reference-scroll 48s linear infinite;
}

.reference-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  min-width: 100vw;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0 20px 0 0;
}

.reference-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 250px;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.reference-logo-dark {
  background: var(--dark);
  border-color: var(--dark);
}

.reference-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.reference-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -5px;
}

.reference-logo img {
  display: block;
  width: 210px;
  height: 130px;
  object-fit: contain;
}

.reference-logo img.reference-logo-square {
  width: 230px;
  height: 230px;
}

.reference-marquee:hover .reference-track,
.reference-marquee:focus-within .reference-track,
.reference-marquee.is-paused .reference-track {
  animation-play-state: paused;
}

@keyframes reference-scroll {
  to {
    transform: translateX(-50%);
  }
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-buttons button {
  color: var(--ink);
  background: transparent;
  border: 1px solid #a5ac9d;
  padding: 11px 14px;
  font-size: 12px;
}

.filter-buttons button[aria-pressed="true"] {
  background: var(--dark);
  color: var(--paper);
  border-color: var(--dark);
}

.blog-tools {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 35px;
}

.search-field {
  display: grid;
  gap: 8px;
  font-size: 12px;
  min-width: 220px;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #b7bdaf;
  border-radius: 0;
  padding: 14px;
  background: #faf9f5;
  color: var(--ink);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #947044;
  outline-offset: 3px;
}

textarea {
  resize: vertical;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding: 25px 0;
  min-width: 0;
}

.article-card-image {
  display: block;
  margin-bottom: 24px;
  overflow: hidden;
  background: #e8e8e0;
  border-radius: 8px;
}

.article-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.article-cover {
  margin: 24px 0 32px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8e8e0;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
}

.article-body .article-byline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.article-byline a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.answer-summary {
  margin-bottom: 40px;
  padding: 24px;
  border-left: 3px solid var(--dark);
  background: #e8e8e0;
}

.answer-summary > p:last-child {
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.article-number {
  font-size: 75px;
  font-weight: 300;
  color: #b6b8aa;
  line-height: 1;
  margin: 35px 0;
}

.article-card h2 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0;
}

.article-card > .under-link {
  align-self: flex-start;
  margin-top: auto;
}

.empty-state {
  padding: 35px;
  background: #e8e8e0;
}

.reading-time {
  color: #b6bfb4;
  font-size: 12px;
}

.article-layout,
.faq-layout,
.legal-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 7%;
}

nav.article-toc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: static;
  padding: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
  gap: 16px;
}

.article-sidebar > .under-link {
  margin-top: 25px;
}

.article-body > section {
  margin-bottom: 45px;
}

.article-body h2 {
  font-size: 32px;
  letter-spacing: -0.7px;
}

.article-body p {
  font-size: 18px;
  line-height: 1.85;
}

.article-next {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.contact-methods > a,
.contact-methods > div {
  display: block;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.contact-methods > a span,
.contact-methods strong {
  display: block;
}

.contact-methods strong {
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 400;
  margin: 13px 0;
  overflow-wrap: anywhere;
}

.contact-methods > a > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.contact-map {
  padding-top: 0;
}

.contact-map .section-head {
  gap: 30px;
}

.map-frame {
  display: block;
  width: 100%;
  height: 450px;
  border: 1px solid var(--line);
  background: #e5e7de;
}

address {
  font-style: normal;
  line-height: 1.7;
  margin-top: 15px;
}

.request-layout {
  grid-template-columns: 1fr 1.65fr;
}

.request-direct {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  font-size: 14px;
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.project-form label {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-intro {
  margin: 0;
  font-size: 12px;
}

.form-note {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.form-note a,
.legal-content a,
.message-draft a {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button.outline-button {
  background: transparent;
  border: 1px solid var(--ink);
}

.section p.form-status {
  padding: 18px;
  background: #e5e7de;
  color: var(--ink);
  margin: 0;
  font-size: 14px;
}

.message-draft {
  display: grid;
  gap: 15px;
}

.message-draft .under-link {
  justify-self: start;
}

.section-links {
  display: grid;
  gap: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.faq-group {
  margin-bottom: 55px;
}

.faq-group:first-child h2 {
  margin-top: 0;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  font-size: 18px;
  line-height: 1.5;
  padding-right: 20px;
}

.faq-list details[open] summary {
  color: #765938;
}

.faq-list details p {
  margin: 15px 0 0;
}

.legal-content > section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  font-size: 34px;
  margin-top: 0;
  letter-spacing: -0.5px;
}

.legal-content h3 {
  font-size: 22px;
}

[id] {
  scroll-margin-top: 25px;
}

.section.page-cta p {
  color: #bac0b9;
}

.page-cta > div {
  gap: 8%;
}

.page-cta h2 {
  font-size: clamp(38px, 4.2vw, 58px);
  max-width: 650px;
}

.page-cta > div > div {
  max-width: 430px;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1150px) {
  .work-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    gap: 25px;
  }

  .blog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    max-width: 400px;
  }
}

@media (max-width: 900px) {
  .page-hero h1 {
    letter-spacing: -1.7px;
  }

  .page-lead {
    font-size: 17px;
  }

  .page-hero-foot {
    margin-top: 35px;
  }

  .request-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-item h3 {
    margin-top: 15px;
  }

  .article-layout,
  .faq-layout,
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    border-bottom: 1px solid var(--line);
    padding-bottom: 25px;
  }

  .screen-card > a {
    height: 270px;
    padding: 18px;
  }

  .work-grid {
    gap: 30px 20px;
  }

  .page-cta > div {
    display: block;
  }
}

@media (max-width: 600px) {
  .references-section .section-head > .reference-toggle {
    margin-top: 10px;
  }

  .reference-logo {
    flex-basis: 210px;
    height: 130px;
  }

  .reference-logo img {
    width: 180px;
    height: 110px;
  }

  .reference-logo img.reference-logo-square {
    width: 200px;
    height: 200px;
  }

  .map-frame {
    height: 350px;
  }

  .contact-map .section-head > .under-link {
    margin-top: 10px;
  }

  .page-hero {
    padding-top: 24px;
  }

  .breadcrumbs {
    font-size: 10px;
    margin-bottom: 35px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 9vw, 52px);
    letter-spacing: -1px;
  }

  .page-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .page-hero-foot {
    font-size: 7px;
  }

  .about-layout,
  .editorial-split,
  .service-showcase,
  .product-intro,
  .contact-layout,
  .screen-gallery,
  .work-grid,
  .article-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-mark img {
    max-width: 200px;
  }

  .section .large-copy {
    font-size: 18px;
  }

  .intro h2 {
    font-size: clamp(30px, 9.3vw, 36px);
  }

  .section-head > .filter-buttons {
    margin-top: 24px;
  }

  .screen-card > a {
    height: 320px;
  }

  .screen-card figcaption {
    padding: 0 20px 25px;
  }

  .article-card {
    padding-bottom: 0;
  }

  .article-number {
    margin: 25px 0;
    font-size: 60px;
  }

  .article-body h2 {
    font-size: 28px;
  }

  .article-body p {
    font-size: 17px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    justify-content: space-between;
  }

  .legal-content h2 {
    font-size: 28px;
  }

  .steps li {
    gap: 18px;
  }

  .page-cta h2 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-marquee {
    mask-image: none;
  }

  .reference-track {
    width: 100%;
    animation: none;
  }

  .reference-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    min-width: 0;
    width: 100%;
    padding: 0;
  }

  .reference-group[aria-hidden="true"],
  .reference-group > [aria-hidden="true"] {
    display: none;
  }

  .reference-toggle {
    display: none;
  }

  header nav a {
    transition: none;
  }
}

/* Guides: related reading and the product connection at the end. */
.article-bridge {
  padding: 28px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 18px;
  background: #e8e8e0;
}
.related-reading > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  line-height: 1.5;
}
.article-cover figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.error-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.message-draft > .under-link {
  margin-top: 20px;
}
@media (max-width: 600px) {
  .article-bridge {
    padding: 20px;
  }
}
