/* Shared type and spacing scales: readable phones through ultrawide displays. */
:root {
  --page-gutter: max(5vw, calc((100vw - 2240px) / 2));
  --copy-size: clamp(1rem, .625rem + .42vw, 1.625rem);
  --small-size: clamp(.875rem, .625rem + .25vw, 1.25rem);
  --label-size: clamp(.75rem, .55rem + .15vw, 1rem);
  --section-space: clamp(72px, 6vw, 180px);
}

body { font-size: var(--copy-size); }
.hero-art .hero-slide { opacity: 0; transition: opacity 2.8s ease-in-out; }
.hero-art .hero-slide.is-active { opacity: 1; }
.hero-caption { align-items: center; }
.hero-slideshow-toggle { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #a8aea066; border-radius: 50%; background: #171916b3; color: var(--text); font-size: 12px; }
.hero-slideshow-toggle[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-art .hero-slide { transition: none; } }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; width: clamp(132px, 9vw, 240px); min-height: 44px; }
.brand img { width: 100%; height: auto; object-fit: contain; }
.story-graphic .studio-logo { position: relative; width: 66%; max-width: 380px; height: auto; z-index: 1; }
h1 { font-size: clamp(56px, 6vw, 184px); }
h2 { font-size: clamp(36px, 2rem + 1.6vw, 88px); }
h3 { font-size: clamp(26px, 1rem + 1vw, 48px); }
.page-intro h1 { max-width: min(100%, 20ch); }
.section { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.section:not(.page-intro, .project-intro, .services-detail, .gallery-image, .work-list) {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
:is(.project-grid, .expertise-layout, .story, .clients-heading, .project-details,
    .service-detail, .process-grid, .about-story, .contact-page, .form-grid, .team-grid) > * {
  min-width: 0;
}
:is(h1, h2, h3, p, dd, .text-link, .contact-details, .footer-bottom) {
  overflow-wrap: break-word;
}
.section-label, .mono { font-size: var(--label-size); }
.section-label { letter-spacing: .08em; }
.header { height: clamp(96px, 6.5vw, 160px); padding-inline: var(--page-gutter); gap: 24px; }
.wordmark { font-size: clamp(40px, 2.75vw, 76px); }
.wordmark .wordmark-sub { font-size: clamp(9px, .6vw, 15px); }
.nav { gap: clamp(28px, 2.8vw, 80px); }
.nav a, .nav-contact, .button, .text-link { font-size: var(--copy-size); }
.nav sup { font-size: var(--label-size); }
.nav-contact { min-height: 48px; min-width: 150px; white-space: nowrap; flex-shrink: 0; }
.button { min-height: 56px; padding: 16px 26px; }
.text-link { min-height: 44px; }
.hero { min-height: clamp(760px, 40vw, 1240px); }
.hero-top { margin-inline: var(--page-gutter); font-size: var(--label-size); }
.hero-content {
  width: 72%;
  padding: clamp(56px, 4vw, 140px) 0 clamp(140px, 7vw, 220px) var(--page-gutter);
}
.hero-content h1 { max-width: none; font-size: clamp(68px, 6.5vw, 200px); }
.hero-content p { max-width: 42ch; font-size: var(--copy-size); line-height: 1.8; }
.hero-caption { right: var(--page-gutter); font-size: var(--label-size); }
.hero-caption small { font-size: var(--small-size); }
.hero-bottom { left: var(--page-gutter); right: var(--page-gutter); font-size: var(--label-size); gap: 24px; }
.section-heading h2, .story-copy h2, .clients-heading h2,
.about-story h2, .service-detail h2 { font-size: clamp(36px, 2rem + 1.6vw, 88px); }
.section-heading p, .expertise-intro p, .service-row p, .story-copy p,
.clients-heading p, .intro-bottom p, .empty-state p, .project-details p,
.service-detail p, .process-grid p, .about-story p, .team-grid p,
.contact-info > p, .legal p, .success-message p { font-size: var(--copy-size); }
.section-heading p, .intro-bottom p, .expertise-intro p, .clients-heading p,
.service-detail p, .contact-info > p { max-width: 44ch; }
.expertise-intro h2 { max-width: 12ch; }
.clients-heading h2 { max-width: 18ch; }
.project-meta h3, .service-row h3, .process-grid h3,
.team-grid h3, .contact-form h2 { font-size: clamp(26px, 1rem + 1vw, 48px); }
.project-meta p, .service-detail li, .project-details dd,
.gallery-image figcaption, .footer-top > p, .footer-social,
.filters a, .contact-details > span, .field label, .consent,
.form-note, .errorlist, .about-statement > span, .service-detail h3 {
  font-size: var(--small-size);
}
.tag, .project-index, .project-details dt, .process-grid span,
.footer-bottom, .service-number, .story-graphic small { font-size: var(--label-size); }
.project-meta { flex-wrap: wrap; }
.project-open { width: 44px; height: 44px; }
.project-intro h1 { font-size: clamp(52px, 5.5vw, 160px); }
.project-intro p { font-size: var(--copy-size); max-width: 50ch; }
.service-detail { gap: clamp(24px, 3vw, 72px); }
.process-grid { gap: clamp(28px, 3vw, 80px); }
.client-logo { min-height: clamp(135px, 8vw, 220px); }
.client-logo img { width: clamp(110px, 7vw, 190px); height: clamp(100px, 6vw, 160px); }
.cta h2 { font-size: clamp(44px, 5.4vw, 160px); }
.circle-link { width: clamp(140px, 10vw, 240px); height: clamp(140px, 10vw, 240px); }
.circle-link small { font-size: var(--label-size); }
.footer { padding-inline: var(--page-gutter); }
.footer-bottom { flex-wrap: wrap; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-info h1 { font-size: clamp(48px, 4.6vw, 140px); }
.contact-form-wrap { padding: clamp(28px, 2.5vw, 64px); }
input:not([type=checkbox]), select, textarea { font-size: max(16px, var(--small-size)); }
input:not([type=checkbox]), select { min-height: 52px; height: auto; }
.field label { margin-bottom: 10px; }
.consent { line-height: 1.7; }
.legal { max-width: 70ch; }
.legal h1 { font-size: clamp(44px, 4vw, 100px); }
.legal h2 { font-size: clamp(26px, 1.25rem + .8vw, 44px); }

@media (min-width: 1600px) {
  .section-heading { margin-bottom: clamp(42px, 3vw, 88px); }
  .project-grid { gap: clamp(45px, 3vw, 90px) clamp(28px, 2vw, 60px); }
  .service-row { padding-block: clamp(30px, 2vw, 60px); }
  .story-graphic { min-height: clamp(410px, 24vw, 680px); }
  .story-graphic strong { font-size: clamp(160px, 10vw, 280px); }
  .orbit { width: clamp(310px, 19vw, 540px); height: clamp(180px, 11vw, 310px); }
  .footer-top { padding-bottom: 64px; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .header { gap: 18px; }
  .nav { gap: 22px; }
  .nav a { font-size: 14px; }
  .nav-contact { min-width: 130px; }
  .hero-content { width: 86%; }
  .hero-content h1 { font-size: clamp(68px, 8vw, 88px); }
  .hero-content p { max-width: 35ch; }
  .hero-bottom { font-size: 11px; }
  .service-detail { grid-template-columns: 34px minmax(0, 1fr); }
  .service-detail ul { grid-column: 2; }
}

@media (max-width: 1000px) {
  .contact-page { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact-info h1 { max-width: 16ch; font-size: clamp(48px, 7vw, 76px); }
  .contact-star { display: none; }
}

@media (max-width: 900px) {
  .expertise-layout, .story { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .story-graphic { min-height: 350px; }
  .expertise-intro p { max-width: 44ch; }
  .expertise .asterisk { display: none; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  :root { --page-gutter: clamp(16px, 5vw, 32px); --section-space: 64px; }
  .header { height: 80px; gap: 12px; }
  .header .brand { width: clamp(108px, 24vw, 150px); }
  .footer .brand { width: 160px; }
  .wordmark { font-size: 32px; }
  .wordmark .wordmark-sub { font-size: 8px; margin-left: 6px; }
  .nav { padding-inline: var(--page-gutter); gap: 12px; }
  .nav a { font-size: 22px; min-height: 44px; }
  .nav-contact { min-width: 0; min-height: 44px; padding: 9px 12px; font-size: 14px; gap: 14px; }
  .menu-toggle { width: 44px; height: 44px; margin-left: 0; align-items: center; flex-shrink: 0; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-top { order: 0; padding-block: 20px; font-size: 11px; letter-spacing: .04em; }
  .hero-content { order: 1; width: 100%; padding: 32px var(--page-gutter) 16px; }
  .hero-content h1 { font-size: clamp(40px, 11.5vw, 80px); margin-bottom: 24px; }
  .hero-content p { max-width: 42ch; margin-bottom: 26px; }
  .hero-art { order: 2; position: relative; inset: auto; height: clamp(240px, 65vw, 470px); }
  .hero-art img { object-position: center; object-fit: contain; }
  .hero-caption { bottom: 100px; right: var(--page-gutter); font-size: 10px; }
  .hero-caption small { font-size: 12px; }
  .hero-bottom { order: 3; position: relative; inset: auto; margin-inline: var(--page-gutter); padding-block: 14px; min-height: 64px; height: auto; flex-wrap: wrap; gap: 8px 16px; font-size: 10px; }
  .hero-bottom a { min-height: 32px; }
  .section-label, .mono { font-size: 12px; }
  .section-heading h2, .story-copy h2, .clients-heading h2, .about-story h2,
  .service-detail h2 { font-size: clamp(32px, 6vw, 44px); }
  .section-heading > .text-link { font-size: 16px; gap: 18px; }
  .section-heading p { font-size: 16px; }
  .project-grid { gap: 34px 20px; }
  .project-meta h3 { font-size: 26px; }
  .project-meta p { font-size: 14px; }
  .project-meta .tag { font-size: 11px; }
  .project-index { font-size: 11px; }
  .service-row h3 { font-size: 28px; }
  .service-row p { font-size: 16px; }
  .service-row .mono { font-size: 12px; }
  .expertise-intro p { max-width: 100%; }
  .clients-heading h2 { max-width: 18ch; }
  .client-logo { min-height: 115px; }
  .client-logo img { width: 95px; height: 90px; max-width: 90%; }
  .cta h2 { font-size: clamp(36px, 7vw, 60px); }
  .cta .section-label { font-size: 11px; max-width: 100%; }
  .circle-link { width: 110px; height: 110px; }
  .circle-link small { font-size: 10px; }
  .footer-top { gap: 24px; align-items: flex-start; }
  .footer-top > p { font-size: 14px; }
  .footer-social { font-size: 14px; flex-wrap: wrap; gap: 16px 28px; }
  .footer-social a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom { font-size: 12px; }
  .page-intro h1 { font-size: clamp(44px, 9vw, 76px); }
  .intro-bottom .mono { font-size: 12px; }
  .service-detail { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
  .service-detail h3 { font-size: 18px; }
  .service-detail li { font-size: 16px; }
  .service-number { font-size: 12px; }
  .process-grid p { max-width: 44ch; }
  .project-intro h1 { font-size: clamp(40px, 9vw, 68px); }
  .project-details h2 { font-size: 38px; }
  .contact-info h1 { font-size: clamp(40px, 9vw, 68px); }
  .contact-form-wrap { padding: clamp(20px, 5vw, 32px); }
  .contact-form h2 { font-size: clamp(26px, 5vw, 36px); }
  .contact-details > span, .field label, .consent, .form-note, .errorlist { font-size: 14px; }
  .legal h1 { font-size: clamp(40px, 8vw, 60px); }
  .legal h2 { font-size: 28px; }
}

@media (max-width: 600px) {
  .project-grid, .team-grid, .about-story, .clients-heading { grid-template-columns: minmax(0, 1fr); }
  .project-image { aspect-ratio: 1.6; }
  .project-meta .tag { display: block; }
  .cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .circle-link { justify-self: end; width: 96px; height: 96px; }
  .circle-link span { font-size: 42px; }
  .circle-link small { font-size: 9px; }
  .footer-top > p { margin-left: 0; }
}

@media (max-width: 360px) {
  .header { gap: 8px; }
  .header .brand { width: 96px; }
  .header .wordmark-sub { display: none; }
  .hero-bottom { display: grid; justify-items: start; }
  .hero-caption { bottom: 120px; }
  .service-row { gap: 12px; }
  .service-row h3 { font-size: 25px; }
  .about-statement { padding: 24px; }
  .form-grid { gap: 22px; }
}
