/* ---------- Apple Watch / ultra-small viewports ---------- */
/* Targets ~160–320px CSS widths (Watch Serie 6 ≈ 162–198px) */

@media (max-width: 320px) {
  :root {
    --section-gutter: 10px;
  }

  html,
  body,
  main {
    max-width: 100%;
    overflow-x: clip;
  }

  /* ----- Reveal: keep readable, skip heavy motion ----- */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  [data-stagger] > .reveal-child {
    opacity: 1 !important;
    transform: none !important;
  }

  /* ----- Marquee ----- */
  .marquee-strips {
    padding: 14px 0 12px;
    margin: 0;
  }

  .marquee-strip {
    width: 140%;
    margin-left: -20%;
    padding: 8px 0;
  }

  .marquee-strip--ltr {
    transform: rotate(-2deg);
  }

  .marquee-strip--rtl {
    transform: rotate(1.8deg);
  }

  .marquee-strip__item {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    padding-inline: 6px;
  }

  .marquee-strip__sep {
    font-size: 0.5rem;
  }

  .marquee-pop {
    display: none !important;
  }

  /* ----- About ----- */
  .about {
    padding: 20px var(--section-gutter) 24px;
  }

  .about__layout {
    gap: 14px;
  }

  .about__side {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
  }

  .about__side-brand {
    font-size: 0.85rem;
  }

  .about__side-nav {
    width: 100%;
    gap: 6px 10px;
  }

  .about__side-nav a {
    font-size: 0.68rem;
  }

  .about__eyebrow {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .about__title {
    margin-bottom: 10px;
  }

  .about__title-lead {
    font-size: clamp(1.35rem, 14vw, 1.8rem);
  }

  .about__title-word {
    font-size: clamp(1.7rem, 18vw, 2.3rem);
  }

  .about__body {
    font-size: 0.72rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .about__meta-item {
    grid-template-columns: 64px 1fr;
    padding: 8px 0;
    gap: 4px;
  }

  .about__meta-label {
    font-size: 0.6rem;
  }

  .about__meta-value {
    font-size: 0.72rem;
  }

  .about__btn {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.72rem;
    gap: 6px;
  }

  .about__visual {
    aspect-ratio: 3 / 4;
    max-height: 160px;
  }

  .about__pager,
  .about__nav-controls {
    display: none;
  }

  .about__info-label {
    font-size: 0.62rem;
  }

  .about__info-col {
    padding: 10px 8px;
  }

  .about__info-col span {
    font-size: 0.68rem;
  }

  /* ----- What we do ----- */
  .wwd {
    padding: 20px var(--section-gutter);
  }

  .wwd__inner {
    gap: 14px;
  }

  .wwd__stats {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .wwd__stat {
    border-right: none !important;
    border-bottom: 1px solid var(--wwd-line);
    padding: 10px 8px !important;
    margin: 0 !important;
  }

  .wwd__stat:last-child {
    border-bottom: none;
  }

  .wwd__stat:nth-child(5) {
    grid-column: auto;
  }

  .wwd__stat-label {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  .wwd__stat-value {
    font-size: 1rem;
  }

  .wwd__stats-orbit {
    display: none;
  }

  .wwd__stage {
    aspect-ratio: 1;
    max-height: 140px;
    padding: 10px;
  }

  .wwd__stage-bracket,
  .wwd__stage-radar,
  .wwd__stage-dots,
  .wwd__stage-stripes,
  .wwd__stage-tagline {
    display: none;
  }

  .wwd__stage-lottie {
    max-width: 90px;
  }

  .wwd__heading {
    font-size: clamp(1.4rem, 12vw, 1.9rem);
  }

  .wwd__eyebrow {
    font-size: 0.55rem;
  }

  .wwd__body-text,
  .wwd__spec-copy span {
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .wwd__spec {
    grid-template-columns: 20px 1fr;
    gap: 6px 8px;
    padding: 10px 8px;
  }

  .wwd__spec-label {
    font-size: 0.62rem;
  }

  .wwd__spec-copy strong {
    font-size: 0.78rem;
  }

  .wwd__pillars {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wwd__pillar {
    gap: 8px;
  }

  .wwd__pillar-icon {
    width: 28px;
    height: 28px;
  }

  .wwd__pillar-title {
    font-size: 0.72rem;
  }

  /* ----- Work ----- */
  .work {
    padding: 20px var(--section-gutter) 24px;
  }

  .work__header {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .work__eyebrow,
  .work__count {
    font-size: 0.6rem;
  }

  .work__count span:first-child {
    font-size: 0.95rem;
  }

  .work__heading {
    font-size: clamp(1.6rem, 16vw, 2.2rem);
  }

  .work__body {
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .work__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work__media {
    aspect-ratio: 16 / 10;
  }

  .work__code {
    font-size: 0.7rem;
    top: 6px;
    left: 8px;
  }

  .work__meta {
    font-size: 0.55rem;
  }

  .work__title {
    font-size: 0.95rem;
  }

  .work__stack {
    font-size: 0.62rem;
  }

  .work__more {
    gap: 10px;
    margin-top: 16px;
  }

  .work__more-label {
    font-size: 0.6rem;
  }

  .work__more-body {
    font-size: 0.7rem;
  }

  .work__more-btn {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  /* ----- Contact ----- */
  .contact {
    padding: 20px var(--section-gutter) 18px;
  }

  .contact__header {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .contact__eyebrow {
    font-size: 0.6rem;
  }

  .contact__heading-lead,
  .contact__heading-word {
    font-size: clamp(1.6rem, 16vw, 2.2rem);
  }

  .contact__header-copy {
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .contact__layout {
    gap: 16px;
  }

  .contact__label {
    font-size: 0.55rem;
  }

  .contact__email {
    font-size: 0.78rem;
    word-break: break-all;
  }

  .contact__value {
    font-size: 0.72rem;
  }

  .contact__form {
    padding: 12px 10px 14px;
    clip-path: polygon(
      8px 0,
      100% 0,
      100% calc(100% - 8px),
      calc(100% - 8px) 100%,
      0 100%,
      0 8px
    );
  }

  .contact__input {
    font-size: 0.78rem;
    padding: 8px 0;
  }

  .contact__textarea {
    min-height: 64px;
  }

  .contact__submit {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  .contact__status {
    font-size: 0.68rem;
  }

  .contact__lottie,
  .contact__form-orbit {
    display: none;
  }

  /* ----- Contact popup ----- */
  .contact-popup {
    padding: 0;
    align-items: stretch;
  }

  .contact-popup__dialog {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    clip-path: none;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: none;
  }

  .contact-popup__close {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .contact-popup__header {
    padding-right: 36px;
    margin-bottom: 10px;
  }

  .contact-popup__eyebrow {
    font-size: 0.55rem;
    margin-bottom: 4px;
  }

  .contact-popup__title-lead,
  .contact-popup__title-word {
    font-size: clamp(1.35rem, 14vw, 1.7rem);
  }

  .contact-popup__desc {
    font-size: 0.65rem;
    line-height: 1.4;
  }

  .contact-popup__form {
    gap: 10px;
  }

  .contact-popup__textarea {
    min-height: 56px;
  }

  /* ----- Footer ----- */
  .site-footer {
    padding: 18px var(--section-gutter) 16px;
  }

  .site-footer__top {
    gap: 14px;
  }

  .site-footer__logo {
    font-size: 0.95rem;
  }

  .site-footer__tagline,
  .site-footer__note,
  .site-footer__copy {
    font-size: 0.6rem;
    line-height: 1.4;
  }

  .site-footer__nav a,
  .site-footer__social a {
    font-size: 0.68rem;
  }

  .site-footer__nav,
  .site-footer__social {
    gap: 6px 10px;
  }

  /* ----- AI chat ----- */
  .ai-chat-host {
    display: none !important;
  }
}

/* Apple Watch Serie 6 class (~162–198px) */
@media (max-width: 220px) {
  :root {
    --section-gutter: 6px;
  }

  body {
    font-size: 11px;
  }

  /* Hero extras already in hero.css — reinforce stack */
  .hero__nav {
    padding: 6px 4px 0;
  }

  .hero__logo-word {
    font-size: 0.85rem;
  }

  .hero__intro {
    font-size: 0.58rem;
  }

  .hero__solid,
  .hero__outline {
    font-size: clamp(1rem, 17vw, 1.35rem);
  }

  .hero__cta {
    padding: 7px 8px;
    font-size: 0.62rem;
  }

  /* Marquee: single compact strip feel */
  .marquee-strips {
    padding: 8px 0;
  }

  .marquee-strip {
    width: 180%;
    margin-left: -40%;
    padding: 5px 0;
  }

  .marquee-strip__item {
    font-size: 0.5rem;
  }

  /* About: denser */
  .about {
    padding: 12px 6px 14px;
  }

  .about__side-nav a {
    font-size: 0.58rem;
  }

  .about__title-lead {
    font-size: 1.15rem;
  }

  .about__title-word {
    font-size: 1.45rem;
  }

  .about__body {
    font-size: 0.62rem;
  }

  .about__meta-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .about__visual {
    max-height: 110px;
  }

  .about__info {
    display: none;
  }

  .about__btn {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.62rem;
  }

  /* WWD */
  .wwd {
    padding: 12px 6px;
  }

  .wwd__stat {
    padding: 8px 6px !important;
  }

  .wwd__stat-value {
    font-size: 0.88rem;
  }

  .wwd__stage {
    max-height: 100px;
    padding: 6px;
  }

  .wwd__heading {
    font-size: 1.15rem;
  }

  .wwd__body-text,
  .wwd__spec-copy span {
    font-size: 0.58rem;
  }

  .wwd__spec-copy strong,
  .wwd__pillar-title {
    font-size: 0.68rem;
  }

  .tech-frame--stats {
    clip-path: none;
  }

  /* Work */
  .work {
    padding: 12px 6px 14px;
  }

  .work__heading {
    font-size: 1.35rem;
  }

  .work__body,
  .work__more-body {
    font-size: 0.58rem;
  }

  .work__title {
    font-size: 0.8rem;
  }

  .work__more-btn {
    min-height: 34px;
    font-size: 0.62rem;
  }

  /* Contact */
  .contact {
    padding: 12px 6px 10px;
  }

  .contact__heading-lead,
  .contact__heading-word {
    font-size: 1.35rem;
  }

  .contact__header-copy,
  .contact__value {
    font-size: 0.58rem;
  }

  .contact__email {
    font-size: 0.65rem;
  }

  .contact__form {
    padding: 10px 8px;
    clip-path: none;
  }

  .contact__input {
    font-size: 0.68rem;
    padding: 6px 0;
  }

  .contact__submit {
    min-height: 34px;
    font-size: 0.62rem;
  }

  .contact-popup__dialog {
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .contact-popup__title-lead,
  .contact-popup__title-word {
    font-size: 1.15rem;
  }

  .contact-popup__desc {
    font-size: 0.55rem;
  }

  .contact-popup__close {
    width: 28px;
    height: 28px;
  }

  /* Footer */
  .site-footer {
    padding: 12px 6px 10px;
  }

  .site-footer__logo {
    font-size: 0.8rem;
  }

  .site-footer__tagline,
  .site-footer__note,
  .site-footer__copy,
  .site-footer__nav a,
  .site-footer__social a {
    font-size: 0.52rem;
  }

  /* New SEO sections */
  .seo-block {
    padding: 16px 6px;
  }

  .seo-block__heading {
    font-size: 1.25rem;
  }

  .seo-block__lead,
  .seo-card__copy {
    font-size: 0.62rem;
  }

  .seo-card {
    padding: 12px 10px;
  }

  .seo-card__title {
    font-size: 0.9rem;
  }

  .locations {
    padding: 16px 0;
  }

  .locations__heading {
    font-size: 1.25rem;
  }

  .locations__lead,
  .locations__hub-note {
    font-size: 0.62rem;
  }

  .locations__chip {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .hero__seo-h1 {
    font-size: 1.05rem;
  }

  .hero__seo-value,
  .hero__seo-services {
    font-size: 0.58rem;
  }

  .contact__whatsapp {
    font-size: 0.85rem;
  }

  .contact__wa-btn {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.68rem;
  }
}

/* Prefer readable text on tiny round/square watch faces */
@media (max-width: 320px) and (max-height: 280px) {
  .hero {
    min-height: 0;
    height: auto;
  }

  .hero__compose {
    min-height: 48px;
  }

  .hero__portrait-wrap,
  .hero__web-fx,
  .hero__clients,
  .ai-chat-host {
    display: none !important;
  }

  .contact-popup__dialog {
    max-height: 100%;
  }
}
