/* ============ Awaken case study: app rail, Oura-informed website pairs, data flow, founder film ============ */
.aw-app, .aw-data { --aw-navy: #0A1925; --aw-sky: #CFE3EE; }

/* ---- the app: a rail of the real app store screens ---- */
.aw-slides { display: flex; gap: clamp(14px, 1.6vw, 24px); margin: 0; padding: 0 clamp(20px, 5vw, 80px) 12px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.aw-slides::-webkit-scrollbar { display: none; }
.aw-slides li { flex: none; width: clamp(210px, 19vw, 270px); scroll-snap-align: start; }
.aw-slides img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.aw-slides li:hover img { transform: translateY(-6px); }
.aw-slides p { margin-top: 1rem; font-size: var(--step-small); line-height: 1.5; color: rgba(255, 255, 255, .62); }
.aw-slides b { display: block; margin-bottom: .2rem; font-size: var(--step-body); font-weight: 600; color: #fff; }
.aw-note { margin-top: 1.5rem; font-size: 12px; color: rgba(255, 255, 255, .45); }
.js .v2 .aw-slides[data-in] { transform: none; }
.js .v2 .aw-slides[data-in] li { opacity: 0; transform: translateX(40px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.js .v2 .aw-slides[data-in].is-in li { opacity: 1; transform: none; }
.aw-slides li:nth-child(2) { transition-delay: .06s; } .aw-slides li:nth-child(3) { transition-delay: .12s; } .aw-slides li:nth-child(4) { transition-delay: .18s; } .aw-slides li:nth-child(n+5) { transition-delay: .24s; }

/* ---- the website: what we took from Oura, as four pairs ---- */
.aw-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; list-style: none; }
.aw-pairs > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; padding: clamp(18px, 2vw, 28px); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.aw-pairs__from { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; min-width: 0; }
.aw-pairs__from span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.aw-pairs__from h3 { margin: 0 0 .5rem; font-size: clamp(1.3rem, 1.7vw, 1.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.aw-pairs__from p { font-size: var(--step-small); line-height: 1.55; color: var(--soft); }

/* the Awaken side: small working pieces of the site, in the brand's colours */
.aw-ui { position: relative; overflow: hidden; min-height: 250px; padding: 18px; border-radius: 18px; background: #EAF2F7; color: #0A1925; }
.aw-ui__k { margin: 0 0 .75rem; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #4B6474; }
.aw-dial { position: relative; width: 78%; margin: 0 auto; }
.aw-dial svg { display: block; width: 100%; overflow: visible; }
.aw-dial path { fill: none; stroke-width: 9; stroke-linecap: round; }
.aw-dial__track { stroke: #C9DCE7; }
.aw-dial__fill { stroke: #138A82; stroke-dasharray: 78 100; }
.aw-dial b { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.aw-dial small { font-size: .4em; color: #4B6474; letter-spacing: 0; }
.aw-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 1rem 0 0; padding: 0; list-style: none; font-size: 11px; font-weight: 600; }
.aw-bars li::after { content: ''; display: block; height: 4px; margin-top: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--c) 82%, #C9DCE7 82%); }
.aw-ui--hero { display: flex; align-items: flex-end; padding: 0; background: #0A1925; }
.aw-ui--hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: .78; }
.aw-ui--hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 37, 0) 35%, rgba(10, 25, 37, .85) 100%); }
.aw-ui--hero p { position: relative; z-index: 1; padding: 18px; font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 300; line-height: 1.2; color: #fff; }
.aw-ui--learn { background: #F3EEE6; }
.aw-card { margin-top: 10px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px -18px rgba(10, 25, 37, .5); }
.aw-card small { display: block; margin-bottom: 6px; font-size: 11px; color: #4B6474; }
.aw-card b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.aw-ui--ritual { display: flex; flex-direction: column; background: #0A1925; color: #fff; }
.aw-ui--ritual .aw-ui__k { color: rgba(255, 255, 255, .6); }
.aw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.aw-chips li { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 500; }
.aw-ui__cta { display: grid; gap: 8px; margin-top: auto; padding-top: 1rem; }
.aw-ui__cta span { padding: 11px 14px; border-radius: 999px; background: #fff; color: #0A1925; text-align: center; font-size: 12px; font-weight: 600; }
.aw-ui__cta span + span { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
@media (max-width: 1099px) { .aw-pairs { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .aw-pairs > li { grid-template-columns: 1fr; } .aw-ui { min-height: 230px; } }

/* ---- data as an asset: what is captured, the baseline, where it has value ---- */
.aw-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 2.4vw, 40px); align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
.aw-flow__col { padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.aw-flow__k { margin: 0 0 1rem; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.aw-flow ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.aw-flow li { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--step-small); line-height: 1.5; color: rgba(255, 255, 255, .65); }
.aw-flow li:first-child { padding-top: 0; border-top: 0; }
.aw-flow li b { display: block; margin-bottom: .15rem; font-size: var(--step-body); font-weight: 600; color: #fff; }
.aw-flow__mid { position: relative; display: grid; place-items: center; width: clamp(160px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(110, 170, 210, .35), rgba(110, 170, 210, .06) 70%); box-shadow: inset 0 0 0 1px rgba(160, 205, 235, .35); text-align: center; }
.aw-flow__mid::before, .aw-flow__mid::after { content: ''; position: absolute; top: 50%; width: clamp(16px, 2.4vw, 40px); height: 1px; background: rgba(160, 205, 235, .5); }
.aw-flow__mid::before { right: 100%; } .aw-flow__mid::after { left: 100%; }
.aw-flow__mid span { max-width: 13ch; font-size: clamp(.9rem, 1.1vw, 1rem); font-weight: 500; line-height: 1.35; color: #fff; }
@media (max-width: 899px) {
  .aw-flow { grid-template-columns: 1fr; justify-items: stretch; }
  .aw-flow__mid { justify-self: center; width: 180px; }
  .aw-flow__mid::before, .aw-flow__mid::after { display: none; }
}

/* ---- founder film ---- */
.aw-film__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.aw-film .tile--film { width: 100%; height: clamp(440px, 38vw, 560px); }
@media (max-width: 899px) { .aw-film__in { grid-template-columns: 1fr; } .aw-film .tile--film { height: 420px; } }
@media (max-width: 599px) { .aw-slides li { width: 62vw; } }
.v2 .aw-app .aw-slides { padding: 0 clamp(20px, 5vw, 80px) 12px; scroll-padding-left: clamp(20px, 5vw, 80px); }

/* ---- light and dark: the same six screens, switched in place ---- */
.v2 .aw-modes { --aw-bg: #EAF2F7; --aw-ink: #0A1925; position: relative; margin-inline: 8px; border-radius: 32px; background: var(--aw-bg); color: var(--aw-ink); transition: background .7s ease, color .7s ease; }
.v2 .aw-modes[data-mode="dark"] { --aw-bg: #0B1C28; --aw-ink: #fff; }
.v2 .aw-modes h2, .v2 .aw-modes .kicker { color: var(--aw-ink); transition: color .7s ease; }
.v2 .aw-modes .sub { color: color-mix(in srgb, var(--aw-ink) 62%, transparent); transition: color .7s ease; }
.aw-modes__side { display: grid; gap: 1.5rem; justify-items: start; }
.aw-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--aw-ink) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--aw-ink) 14%, transparent); }
.aw-switch button { padding: .6rem 1.25rem; border: 0; border-radius: 999px; background: transparent; color: var(--aw-ink); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .4s ease, color .4s ease; }
.aw-switch button[aria-pressed="true"] { background: var(--aw-ink); color: var(--aw-bg); }
.aw-switch button:focus-visible { outline: 2px solid #3B82F6; outline-offset: 2px; }
.v2 .aw-phones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 0; list-style: none; }
.aw-phones figure { margin: 0; }
.aw-ph { position: relative; display: block; aspect-ratio: 393 / 852; padding: 5px; border-radius: 30px; background: #0D0B12; box-shadow: 0 30px 60px -30px rgba(10, 25, 37, .55), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.aw-ph img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; object-position: 50% 0; border-radius: 25px; transition: opacity .7s ease; }
.aw-ph__d { opacity: 0; }
.aw-modes[data-mode="dark"] .aw-ph__d { opacity: 1; }
.aw-phones li:nth-child(2) .aw-ph img { transition-delay: .05s; } .aw-phones li:nth-child(3) .aw-ph img { transition-delay: .1s; } .aw-phones li:nth-child(4) .aw-ph img { transition-delay: .15s; } .aw-phones li:nth-child(5) .aw-ph img { transition-delay: .2s; } .aw-phones li:nth-child(6) .aw-ph img { transition-delay: .25s; }
.aw-phones figcaption { margin-top: 1rem; font-size: var(--step-small); line-height: 1.45; color: color-mix(in srgb, var(--aw-ink) 60%, transparent); transition: color .7s ease; }
.aw-phones figcaption b { display: block; font-size: var(--step-body); font-weight: 600; color: var(--aw-ink); transition: color .7s ease; }
@media (max-width: 1099px) { .v2 .aw-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 599px) {
  .v2 .aw-phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; }
  .v2 .aw-phones::-webkit-scrollbar { display: none; }
  .aw-phones li { flex: none; width: 58vw; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .aw-ph img, .v2 .aw-modes, .aw-switch button { transition: none; } }
.aw-modes .head > div:first-child { flex: 1 1 24rem; }
.aw-modes__side { flex: 0 1 32rem; }
@media (max-width: 599px) { .v2 .aw-phones { padding-inline: 20px; scroll-padding-left: 20px; } }

/* ---- website: real screens from awakeneyes.com ---- */
.aw-web .aw-pairs > li { grid-template-columns: 1fr; align-content: start; }
.aw-web .aw-pairs__from { gap: .75rem; justify-content: flex-start; }
.aw-shot { margin: 0; overflow: hidden; border-radius: 14px; background: #F3EEE6; box-shadow: 0 24px 50px -30px rgba(10, 25, 37, .45), 0 0 0 1px rgba(10, 25, 37, .08); }
.aw-shot__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #E9E4DA; }
.aw-shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(10, 25, 37, .2); }
.aw-shot__bar span { margin: 0 auto; padding: 2px 12px; border-radius: 6px; background: rgba(255, 255, 255, .7); font-size: 10px; color: #4B6474; }
.aw-shot img { display: block; width: 100%; height: auto; }
.aw-live { display: inline-block; margin-top: .75rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.aw-site { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; }
.aw-site p { margin-top: .75rem; font-size: var(--step-small); font-weight: 600; color: var(--ink); }
@media (max-width: 1099px) { .aw-site { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .aw-web .aw-pairs > li { grid-template-columns: 1fr; } }
.aw-web .head > div:first-child { flex: 1 1 24rem; }
.aw-web .head > .sub { flex: 0 1 32rem; }

/* ---- the teardown: Oura, annotated, beside the Awaken screen it shaped ---- */
.aw-tear { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; list-style: none; counter-reset: none; }
.aw-tear__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.aw-tear__head span { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--soft); }
.aw-tear__head h3 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; }
.aw-tear__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.aw-tear__shot { position: relative; margin: 0; }
.aw-tear__label { display: inline-block; margin-bottom: .6rem; padding: .3rem .7rem; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.is-oura .aw-tear__label { background: #EDE8DF; color: #4A4136; }
.is-awaken .aw-tear__label { background: #0A1925; color: #fff; }
.aw-shot__frame { position: relative; display: block; overflow: hidden; border-radius: 14px; box-shadow: 0 24px 50px -30px rgba(10, 25, 37, .45), 0 0 0 1px rgba(10, 25, 37, .08); }
.aw-shot__frame img { display: block; width: 100%; height: auto; }
.aw-pin { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), 0 6px 16px rgba(0, 0, 0, .35); }
.is-oura .aw-pin { background: #E4572E; color: #fff; }
.is-awaken .aw-pin { background: #2F80ED; color: #fff; }
.aw-notes { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: n; }
.aw-notes li { position: relative; padding-left: 2rem; font-size: var(--step-small); line-height: 1.5; color: var(--soft); counter-increment: n; }
.aw-notes li::before { content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; }
.aw-tear__grid > div:first-child .aw-notes li::before { background: #E4572E; }
.aw-tear__grid > div:last-child .aw-notes li::before { background: #2F80ED; }
.aw-tear__src { margin-top: 2rem; font-size: 12px; color: var(--soft); }
@media (max-width: 899px) { .aw-tear__grid { grid-template-columns: 1fr; gap: 2rem; } .aw-pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; } }
.aw-switch button { min-height: 44px; padding-inline: 1.4rem; }
