/* ===== Ploni font ===== */
@font-face { font-family: 'Ploni'; src: url('../fonts/ploni/ploni-ultralight-aaa.otf'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../fonts/ploni/ploni-light-aaa.otf'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../fonts/ploni/ploni-regular-aaa.otf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../fonts/ploni/ploni-medium-aaa.otf'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../fonts/ploni/ploni-demibold-aaa.otf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../fonts/ploni/ploni-bold-aaa.otf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../fonts/ploni/ploni-ultrabold-aaa.otf'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../fonts/ploni/ploni-black-aaa.otf'); font-weight: 900; font-display: swap; }

:root {
  --om-cream: #F5E9DC;
  --om-coral: #F49389;
  --om-maroon: #8B1E3F;
  --om-plum: #46052C;
  --om-bg: #F2F5F3;
  --om-pad: clamp(24px, 8.08vw, 124px); /* max was 155px */
}

.om-body {
  background: var(--om-bg);
  color: var(--om-plum);
  font-family: 'Ploni', sans-serif;
  overflow-x: hidden;
}

.om-wrap { max-width: 1536px; margin: 0 auto; } /* max was 1920px */

/* ===== Header ===== */
.om-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22.4px var(--om-pad); /* was 28px */
  z-index: 100;
  background: transparent;
}
.om-header .logo {
  font-family: 'FuturaMedium', sans-serif;
  font-size: 19.2px; /* was 24px */
  color: var(--om-plum);
}
.om-nav a {
  color: var(--om-plum);
}

/* ===== Hero ===== */
.om-hero {
  position: relative;
}
.om-hero-media {
  position: relative;
  min-height: 100vh;
  background: url('../assets/ourmix/hero-bg.jpg') center / cover no-repeat;
}
.om-logo-mark {
  width: clamp(280px, 34vw, 416px); /* max was 520px */
  height: auto;
}
.om-hero-media .om-logo-mark {
  position: absolute;
  left: 35.87%;
  top: 25.83%;
  width: 28.26%;
}
.om-hero-caption {
  position: absolute;
  left: var(--om-pad);
  top: 70.82%;
  max-width: 392px; /* was 490px */
  color: var(--om-cream);
  font-family: 'FuturaBold', sans-serif;
  font-weight: 700;
  font-size: 12.8px; /* was 16px */
  line-height: 1.5;
  text-transform: uppercase;
}
.om-hero-meta {
  position: absolute;
  left: var(--om-pad);
  top: 78.25%;
  display: grid;
  grid-template-columns: minmax(160px, 15.16vw) auto;
  column-gap: 0;
  row-gap: clamp(20px, 4vh, 32px); /* max was 40px */
  color: var(--om-cream);
  font-family: 'FuturaMedium', sans-serif;
  font-size: 11.2px; /* was 14px */
  text-transform: uppercase;
}

.om-scroll-arrow {
  position: absolute;
  left: calc(var(--om-pad) * 0.35);
  top: 82%;
  transform: translateY(-50%);
  width: clamp(10px, 0.9vw, 12px); /* max was 15px */
  color: var(--om-cream);
  z-index: 5;
  pointer-events: none;
}
.om-scroll-arrow svg { animation: scroll-arrow-bounce 1.8s ease-in-out infinite; }
.om-scroll-arrow svg { display: block; width: 100%; height: auto; }
.om-hero-meta dt { font-family: 'FuturaBold', sans-serif; font-weight: 700; margin-bottom: 4px; }

/* ===== Section shell ===== */
.om-section {
  padding: 72px var(--om-pad); /* was 90px */
}
.om-h2 {
  font-family: 'Ploni', sans-serif;
  font-weight: 600;
  font-size: 16px; /* was 20px */
  color: var(--om-plum);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.om-body-text {
  font-size: 12.8px; /* was 16px */
  line-height: 1.65;
  max-width: 576px; /* was 720px */
  color: var(--om-plum);
  margin-bottom: 18px;
}
.om-body-text:last-child { margin-bottom: 0; }

/* ===== Decorative circles ===== */
.om-decor-wrap { position: relative; overflow: visible; }
.om-decor-circle {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.om-decor-circle--large {
  width: clamp(220px, 26vw, 336px); /* max was 420px */
  right: 4%;
  bottom: -10%;
}
.om-decor-circle--small {
  width: clamp(80px, 8vw, 112px); /* max was 140px */
  right: 18%;
  top: 10%;
}

/* ===== Objectives ===== */
.om-objectives {
  display: flex;
  gap: 32px; /* was 40px */
  flex-wrap: wrap;
  margin-top: 24px; /* was 30px */
}
.om-obj-circle {
  width: 208px; /* was 260px */
  height: 231.2px; /* was 289px */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 24px 0 24px 33.6px; /* was 30px 0 30px 42px */
}
.om-obj-circle:nth-child(1) { background-image: url('../assets/ourmix/obj-blob-1.svg'); }
.om-obj-circle:nth-child(2) { background-image: url('../assets/ourmix/obj-blob-2.svg'); }
.om-obj-circle .num {
  font-family: 'Ploni', sans-serif;
  font-weight: 400;
  font-size: 44.8px; /* was 56px */
  color: var(--om-maroon);
  line-height: 1;
  margin-bottom: 14px;
}
.om-obj-circle p {
  font-size: 11.2px; /* was 14px */
  line-height: 1.5;
  color: var(--om-maroon);
  text-transform: uppercase;
  max-width: 152px; /* was 190px */
}

/* ===== Wireframe / Final Screen rows ===== */
.om-screens-row {
  display: grid;
  grid-template-columns: repeat(3, 120px) 422.4px; /* was 150px / 528px */
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 2.36vw, 36px); /* max was 45px */
  margin-top: 24px; /* was 30px */
}
.om-col-last { grid-column: 4; }
.om-frame-phone {
  flex: 0 0 auto;
  width: 120px; /* was 150px */
  aspect-ratio: 246.161 / 534.841;
  border-radius: 17.6px; /* was 22px */
  overflow: hidden;
  background: #111;
}
.om-frame-tv {
  flex: 0 0 auto;
  width: 422.4px; /* was 528px */
  aspect-ratio: 813.194 / 457.421;
  overflow: hidden;
  background: #111;
}
.om-frame-phone img,
.om-frame-tv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Final Screen UI: real device chrome */
.om-device-phone {
  position: relative;
  flex: 0 0 auto;
  width: 120px; /* was 150px */
  aspect-ratio: 257 / 530;
  border-radius: 20.8px; /* was 26px */
  background: #000;
  border: 2.5px solid #515151;
  overflow: hidden;
  padding: 2px;
}
.om-device-phone::before {
  content: '';
  position: absolute;
  top: 5.6px; /* was 7px */
  left: 50%;
  transform: translateX(-50%);
  width: 35.2px; /* was 44px */
  height: 8.8px; /* was 11px */
  border-radius: 12.8px; /* was 16px */
  background: #000;
  z-index: 2;
}
.om-device-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17.6px; /* was 22px */
  display: block;
}
.om-device-tv {
  position: relative;
  flex: 0 0 auto;
  width: 422.4px; /* was 528px */
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}
.om-device-tv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.om-device-tv::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(59,59,59,0.76));
  opacity: 0.5;
}

/* ===== Design system ===== */
.om-ds-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 19.2px; /* was 24px */
  margin-top: 64px; /* was 80px */
  margin-left: 38.4px; /* was 48px */
}
.om-design-system > .om-ds-row:first-of-type { margin-top: 24px; } /* was 30px */
.om-ds-label {
  flex: 0 0 88px; /* was 110px */
  font-family: 'Ploni', sans-serif;
  font-weight: 400;
  font-size: 16px; /* was 20px */
  color: var(--om-plum);
  text-transform: uppercase;
  margin: 0;
}

.om-colors {
  display: flex;
  gap: 32px; /* was 40px */
  flex-wrap: wrap;
}
.om-color-chip { text-align: center; }
.om-color-chip .swatch {
  width: 118.4px; /* was 148px */
  height: 116.8px; /* was 146px */
  margin-bottom: 14px;
  display: block;
}
.om-color-chip .hex {
  font-size: 11.2px; /* was 14px */
  color: var(--om-plum);
}

.om-type-specimen {
  position: relative;
  flex: 1;
  min-width: 400px;
  --aa-size: clamp(120px, 16vw, 208px); /* max was 260px */
  height: var(--aa-size);
  margin-bottom: calc(var(--aa-size) * 0.2);
}
.om-type-specimen .giant-aa {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Ploni', sans-serif;
  font-weight: 800;
  font-size: var(--aa-size);
  line-height: 1;
  color: rgba(139, 30, 63, 0.19);
}
.om-type-specimen .label {
  position: absolute;
  top: 88%;
  left: 0;
  font-family: 'Ploni', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 19.2px); /* max was 24px */
  color: #000;
  margin: 0;
  white-space: nowrap;
}
.om-type-specimen .alphabet {
  position: absolute;
  top: 101%;
  left: 0;
  font-family: 'Ploni', sans-serif;
  font-size: clamp(16px, 1.5vw, 19.2px); /* max was 24px */
  letter-spacing: 0.02em;
  color: #000;
  white-space: nowrap;
}

.om-icons-grid {
  max-width: 512px; /* max was 640px */
  width: 100%;
}

/* ===== Logo section (inside design system) ===== */
.om-ds-logo-content { flex: 1; text-align: center; }
.om-ds-logo-content .om-logo-mark { display: block; width: clamp(320px, 34vw, 448px); margin: 0 auto; } /* max was 560px */
.om-logo-caption {
  max-width: 392px; /* was 490px */
  margin: 16px auto 0; /* was 20px */
  font-size: 12.8px; /* was 16px */
  line-height: 1.65;
  color: var(--om-plum);
}

/* ===== Prototype ===== */
.om-prototype-block:first-child { margin-top: 24px; } /* was 30px */
.om-prototype-block {
  display: flex;
  align-items: center;
  gap: 19.2px; /* was 24px */
  margin-top: 48px; /* was 60px */
  margin-left: 38.4px; /* was 48px */
}
.om-prototype-label {
  flex: 0 0 88px; /* was 110px */
  font-family: 'Ploni', sans-serif;
  font-size: 16px; /* was 20px */
  color: var(--om-plum);
  text-transform: uppercase;
  margin: 0;
}
.om-prototype-block--mobile {
  align-items: flex-start;
}
.om-prototype-block--mobile .om-prototype-label {
  margin-top: clamp(90px, 18vw, 176.8px); /* max was 221px */
}
.om-prototype-video-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}
.om-prototype-video {
  display: block;
  background: #111;
}
.om-prototype-video--mobile {
  width: min(100%, 256px); /* fixed ceiling was 320px */
  aspect-ratio: 521.577 / 1082.904;
  object-fit: cover;
}
.om-prototype-video--tv {
  width: min(100%, 720px); /* fixed ceiling was 900px */
  aspect-ratio: 1399.197 / 787.048;
  object-fit: cover;
}

@media (max-width: 700px) {
  .om-hero-caption {
    position: static;
    max-width: none;
    margin: 20px var(--om-pad) 0;
    color: var(--om-plum);
  }
  .om-hero-meta {
    position: static;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 20px var(--om-pad) 28px;
    color: var(--om-plum);
  }

  .om-header.is-scrolled { background: var(--om-bg); }
  .om-decor-circle--small { display: none; }

  .om-screens-row {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 20px;
  }
  .om-col-last { grid-column: 1; }
  .om-frame-phone,
  .om-frame-tv,
  .om-device-phone,
  .om-device-tv {
    width: min(85%, 300px);
  }

  .om-prototype-block {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    gap: 12px;
  }
  .om-prototype-block--mobile .om-prototype-label { margin-top: 0; }
  .om-prototype-label { flex: 0 0 auto; }
  .om-prototype-video-wrap { width: 100%; justify-content: center; }
}

/* ===== Footer spacing normalization =====
   The project-nav bar (prev/next case study) now sits directly above
   the footer on this page, with its own bottom padding providing the
   gap — so the shared footer top margin is not needed here. */
.site-footer { margin-top: 32px; } /* was 40px */
