/* ============================================================
   OMASU.IO  —  responsive (mobile + tablet only)
   Desktop ≥1024px is untouched.
   ============================================================ */

/* --- Header drawer + hamburger: hidden on desktop --- */
.site-header__burger { display: none; }
.site-header__drawer { display: none; }

/* ============================================================
   TABLET — 768px to 1023px
   ============================================================ */
@media (max-width: 1023px) {
  .shell { padding: 0 32px; }

  .section { padding: 88px 0; }
  .section--tight { padding: 64px 0; }

  /* Header: hamburger replaces nav + ctas */
  .site-header__inner { padding: 14px 0; }
  .site-header__nav,
  .site-header__cta { display: none; }
  .site-header__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 4px; cursor: pointer;
    background: transparent; border: 1px solid transparent;
    color: inherit;
  }
  .site-header__burger:hover { border-color: currentColor; opacity: 0.8; }
  .burger {
    position: relative; display: inline-block;
    width: 22px; height: 14px;
  }
  .burger > span {
    position: absolute; left: 0; right: 0; height: 2px;
    background: var(--omasu-ink); border-radius: 2px;
    transition: transform 220ms ease, opacity 160ms ease, top 220ms ease;
  }
  .site-header--on-dark .burger > span { background: #fff; }
  .burger > span:nth-child(1) { top: 0; }
  .burger > span:nth-child(2) { top: 6px; }
  .burger > span:nth-child(3) { top: 12px; }
  .burger.is-open > span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .burger.is-open > span:nth-child(2) { opacity: 0; }
  .burger.is-open > span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .site-header__drawer {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; left: 0; right: 0;
    top: 65px; bottom: 0;
    background: #fff;
    padding: 32px 32px 40px;
    z-index: 49;
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: transform 240ms ease, opacity 200ms ease;
    overflow-y: auto;
  }
  .site-header__drawer.is-open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .site-header--on-dark .site-header__drawer,
  .site-header__drawer--on-dark {
    background: var(--omasu-ink); color: #fff;
  }
  .site-header__drawer-nav {
    display: flex; flex-direction: column; gap: 4px;
  }
  .site-header__drawer-nav a {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 500; letter-spacing: -0.015em;
    padding: 16px 0; min-height: 44px;
    border-bottom: 1px solid var(--border-1);
    color: var(--omasu-ink);
  }
  .site-header--on-dark .site-header__drawer-nav a,
  .site-header__drawer--on-dark .site-header__drawer-nav a {
    color: #fff; border-bottom-color: rgba(255,255,255,0.16);
  }
  .site-header__drawer-ctas {
    display: flex; flex-direction: column; gap: 12px; margin-top: 32px;
  }
  .site-header__drawer-ctas .btn { justify-content: center; padding: 16px 22px; min-height: 48px; }

  /* HERO — Dark + Paper share same grid */
  .hero--dark, .hero--paper { padding: 88px 0 80px; }
  .hero--dark .hero__inner,
  .hero--paper .hero__inner {
    grid-template-columns: 1fr; gap: 40px; align-items: start;
  }
  .hero--dark h1 { font-size: clamp(40px, 8vw, 72px); }
  .hero--paper h1 { font-size: clamp(36px, 7vw, 64px); }
  .hero__foot {
    flex-direction: column; align-items: flex-start; gap: 20px;
    margin-top: 56px; padding-top: 22px;
  }
  .hero__foot .logos { gap: 32px; font-size: 15px; flex-wrap: wrap; }
  .client-logos { gap: 36px; }
  .client-logos__franke { width: 92px; height: 28px; }
  .client-logos__blanco { width: 110px; height: 18px; }
  .client-logos__onyx   { width: 46px; height: 36px; }
  .client-logos__osc    { width: 140px; height: 24px; }

  /* HERO — Split: stack to one column */
  .hero--split .hero__split { grid-template-columns: 1fr; min-height: 0; }
  .hero--split .hero__split-left,
  .hero--split .hero__split-right { padding: 64px 32px; }
  .hero--split h1 { font-size: clamp(40px, 6vw, 64px); }

  /* PILLARS */
  .pillars__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .pillars__head h2 { font-size: clamp(36px, 6vw, 56px); }
  .pillars__head .sub { padding-bottom: 0; }
  .pillars__grid { grid-template-columns: 1fr; gap: 32px; }
  .pillar { padding-top: 22px; }

  /* STAGES */
  .stages__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .stages__head h2 { font-size: clamp(36px, 6vw, 56px); }
  .stages__head .sub { padding-bottom: 0; }
  .stages__rail { flex-wrap: wrap; }
  .stages__rail .tab { min-height: 44px; }
  .stages__panel { grid-template-columns: 1fr; gap: 40px; }
  .stages__panel-left .big-n { font-size: clamp(120px, 28vw, 220px); }
  .stages__panel-right .caps { grid-template-columns: 1fr; }
  .stages__panel-right .caps .cap:nth-child(even) {
    padding-left: 0; border-left: none;
  }
  .stages__panel-right .caps .cap:nth-child(odd) { padding-right: 0; }

  /* STATS */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; padding-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat .n { font-size: clamp(48px, 8vw, 72px); }

  /* CASES */
  .cases__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .cases__head h2 { font-size: clamp(36px, 6vw, 56px); }
  .cases__head .sub { padding-bottom: 0; }
  .cases__grid { grid-template-columns: 1fr; }
  .case-card--feature { grid-column: span 1; }
  .case-card--feature .case-card__layout { grid-template-columns: 1fr; }
  .case-card--feature .case-card__media { min-height: 280px; aspect-ratio: 16/10; height: auto; }
  .case-card--feature .case-card__body { padding: 32px 28px 28px; }
  .case-card--feature .case-card__title { font-size: 28px; }
  .case-card__foot { flex-wrap: wrap; gap: 20px 24px; }

  /* ENGAGEMENT */
  .engagement__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
  .engagement__head h2 { font-size: clamp(36px, 6vw, 56px); }
  .engagement__head .sub { padding-bottom: 0; }
  .engagement__blocks { gap: 72px; }
  .engagement-block { grid-template-columns: 1fr; gap: 32px; }
  .engagement-block__claim { position: static; padding-top: 0; }
  .engagement-doc { padding: 32px 28px 28px; gap: 24px; }
  .engagement-doc__metrics { grid-template-columns: 1fr 1fr; }
  .engagement-doc__metrics .m:nth-child(odd):not(:first-child) {
    padding-left: 0; border-left: none;
    border-top: 1px solid var(--border-1); padding-top: 16px;
  }
  .engagement-doc__metrics .m:nth-child(4) {
    border-top: 1px solid var(--border-1); padding-top: 16px;
  }
  .engagement-doc__movements { grid-template-columns: 1fr; }
  .engagement-doc__movements .mv:not(:first-child) {
    padding-left: 0; border-left: none;
    border-top: 1px solid var(--border-1);
  }
  .engagement-doc__verdict { grid-template-columns: 1fr; gap: 8px; }

  /* CTA */
  .cta { padding: 96px 0; }
  .cta h2 { font-size: clamp(48px, 8vw, 88px); }
  .cta__lead { font-size: 17px; }

  /* FOOTER */
  .footer { padding: 64px 0 32px; }
  .footer__inner {
    grid-template-columns: 1fr 1fr; gap: 40px;
  }
  .footer__inner > div:first-child { grid-column: span 2; }
  .footer__bottom { margin-top: 48px; flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============================================================
   MOBILE — below 768px
   ============================================================ */
@media (max-width: 767px) {
  .shell { padding: 0 20px; }
  body { font-size: 16px; }

  /* Section rhythm tightens */
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .section + .section { padding-top: 0; }

  /* All form-ish controls should be ≥16px to stop iOS auto-zoom */
  input, select, textarea, button { font-size: 16px; }

  /* HEADER drawer top offset shrinks with header */
  .site-header__inner { padding: 12px 0; }
  .site-header img { height: 18px; }
  .site-header__drawer { top: 53px; padding: 24px 20px 32px; }
  .site-header__drawer-nav a { font-size: 26px; padding: 14px 0; }

  /* HERO */
  .hero--dark, .hero--paper { padding: 56px 0 64px; }
  .hero--dark h1 { font-size: clamp(32px, 9vw, 48px); margin-top: 20px; }
  .hero--paper h1 { font-size: clamp(30px, 8vw, 44px); margin-top: 20px; }
  .hero__strap { font-size: 16px; line-height: 1.6; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { flex: 1; justify-content: center; min-height: 48px; }
  .hero__foot { margin-top: 40px; }
  .hero__foot .logos { gap: 20px 24px; font-size: 13px; }
  .client-logos { gap: 24px 28px; }
  .client-logos__franke { width: 78px; height: 24px; }
  .client-logos__blanco { width: 92px; height: 16px; }
  .client-logos__onyx   { width: 40px; height: 32px; }
  .client-logos__osc    { width: 120px; height: 20px; }
  .hero__foot .label { font-size: 10px; }

  /* HERO Split */
  .hero--split .hero__split-left,
  .hero--split .hero__split-right { padding: 48px 20px; }
  .hero--split h1 { font-size: clamp(32px, 9vw, 48px); }
  .hero--split .hero__split-right .strap { font-size: 18px; }
  .hero--split .stage-list .row { grid-template-columns: 44px 1fr auto; gap: 14px; padding: 14px 0; }
  .hero--split .stage-list .row .t { font-size: 16px; }

  /* PILLARS / STAGES / CASES / CTA / ENGAGEMENT headings: scale down a notch */
  .pillars__head h2,
  .stages__head h2,
  .cases__head h2,
  .engagement__head h2 { font-size: clamp(28px, 8vw, 40px); }
  .pillars__head .sub,
  .stages__head .sub,
  .cases__head .sub,
  .engagement__head .sub { font-size: 15px; }

  .pillar h3 { font-size: 22px; }
  .pillar p { font-size: 15px; }

  /* STAGES */
  .stages__rail { gap: 6px; padding-bottom: 20px; margin-bottom: 36px; }
  .stages__rail .tab { padding: 10px 14px; }
  .stages__rail .tab .t { font-size: 15px; }
  .stages__panel-left .big-n { font-size: 140px; }
  .stages__panel-left .strap { font-size: 22px; }
  .stages__panel-right { padding-top: 4px; }
  .stages__panel-right .desc { font-size: 16px; }

  /* STATS */
  .stats { grid-template-columns: 1fr; border-top: 1px solid var(--omasu-ink); }
  .stat {
    border-right: none !important;
    padding: 28px 0 24px !important;
    border-bottom: 1px solid var(--border-1);
  }
  .stat .n { font-size: clamp(44px, 13vw, 64px); }

  /* CASES */
  .case-card__body { padding: 24px 22px 24px; }
  .case-card__title { font-size: 20px; }
  .case-card--feature .case-card__body { padding: 28px 22px 24px; }
  .case-card--feature .case-card__title { font-size: 24px; }
  .case-card__foot { gap: 16px 20px; padding-top: 14px; }
  .case-card__foot .res .n { font-size: 20px; }
  .case-card__sub { font-size: 14px; }

  /* ENGAGEMENT */
  .engagement__blocks { gap: 56px; }
  .engagement-doc { padding: 24px 20px 22px; gap: 20px; }
  .engagement-doc__title { font-size: 22px; }
  .engagement-doc__metrics .m .n { font-size: 24px; }
  .engagement-doc__movements .mv__head { font-size: 15px; }
  .engagement-doc__plan li { grid-template-columns: 44px 1fr; column-gap: 12px; }
  .engagement-doc__plan li .t { font-size: 14px; }
  .engagement-doc__plan li .s { font-size: 12px; }
  .engagement-doc__verdict .body { font-size: 13px; }
  .engagement-block__claim h3 { font-size: 24px; }
  .engagement-block__claim p { font-size: 15px; }

  /* CTA */
  .cta { padding: 72px 0; }
  .cta h2 { font-size: clamp(40px, 12vw, 64px); }
  .cta__lead { font-size: 16px; }
  .cta__btn { width: 100%; justify-content: center; align-self: stretch; min-height: 52px; }

  /* FOOTER */
  .footer { padding: 56px 0 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__inner > div:first-child { grid-column: span 2; }
  .footer__col h4 { margin-bottom: 12px; }
  .footer__bottom { margin-top: 40px; font-size: 10px; }

  /* Images never overflow */
  img { max-width: 100%; height: auto; }
}

/* ============================================================
   Very small phones — 374px and under (iPhone SE)
   ============================================================ */
@media (max-width: 374px) {
  .shell { padding: 0 16px; }
  .hero--dark h1, .hero--paper h1 { font-size: 30px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
}

/* ============================================================
   Generic safety: never let an asset push past viewport
   ============================================================ */
@media (max-width: 1023px) {
  img, video, iframe, table { max-width: 100%; }
  html, body { overflow-x: hidden; }
  /* Hit-target floor on touch */
  .btn, a.btn, button.btn,
  .site-header__nav a,
  .stages__rail .tab,
  .cta__panel .slot {
    min-height: 44px;
  }
}
