/* FYC front page: a social app. White cards, soft greys, FYC orange. */
:root {
  --bg: #f3f3f1; --card: #fff; --soft: #f4f4f3; --ink: #1b1a18; --ink-2: #5a5853; --line: #e7e6e3;
  --accent: #F95D2D; --on-accent: #120a06;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif; --text: "Geist", system-ui, sans-serif;
  --r: 26px; --r-s: 16px; --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 1px 2px rgb(30 25 15 / 0.04), 0 14px 34px -22px rgb(30 25 15 / 0.22);
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-width: thin; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1rem; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.i { width: 1.45rem; height: 1.45rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app { display: grid; grid-template-columns: 15rem minmax(0, 38rem) 20rem; gap: 2rem; justify-content: center; max-width: 80rem; margin-inline: auto; padding: 0 1.5rem; }

/* left */
.side, .right { position: sticky; top: 0; height: 100dvh; padding-block: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.right { overflow-y: auto; scrollbar-width: none; }
.logo img { height: 2.3rem; width: auto; }
.side__nav { display: grid; gap: 0.25rem; margin-top: 0.75rem; }
.side__nav a { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 1rem; border-radius: 999px; font-weight: 500; transition: background-color 160ms var(--ease); }
.side__nav a[aria-current] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .side__nav a:not([aria-current]):hover { background: #e9e8e5; } }
.side__cta { margin-top: auto; display: grid; gap: 0.2rem; padding: 0.75rem; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.side__cta img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); margin-bottom: 0.5rem; }
.side__cta b { font-weight: 600; line-height: 1.25; }
.side__cta span { font-size: 0.85rem; color: var(--ink-2); }

/* feed */
.feed { padding-block: 1.5rem 3rem; display: grid; gap: 1.25rem; min-width: 0; align-content: start; }
.topbar { display: none; }
.stories { display: flex; gap: 0.9rem; overflow-x: auto; scrollbar-width: none; padding: 0.25rem 0.25rem 0.5rem; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 4.9rem; display: grid; justify-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 500; text-align: center; line-height: 1.15; }
.story__ring { display: block; width: 4.4rem; height: 4.4rem; padding: 3px; border-radius: 50%; background: var(--accent); transition: transform 140ms var(--ease); }
.story__ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--bg); }
.story:active .story__ring { transform: scale(0.95); }
.story__ring--empty { display: grid; place-items: center; background: none; border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.story__ring--empty i { width: 1.1rem; height: 1.1rem; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; opacity: 0.35; }

.post { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 0.75rem; display: grid; gap: 0.75rem; scroll-margin-top: 1rem; }
.post__head { display: flex; align-items: center; gap: 0.65rem; padding: 0.25rem 0.35rem 0; }
.av { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.post__head b { display: block; font-weight: 600; line-height: 1.2; }
.post__head span { font-size: 0.82rem; color: var(--ink-2); }
.post h1, .post h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; font-variation-settings: "opsz" 60; }
.post h2 em, .post h1 em { font-style: normal; color: var(--accent); }
.post__body { padding: 0.25rem 0.5rem; }
.post__body h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.post__body p { margin: 0.4rem 0 0; color: var(--ink-2); text-wrap: pretty; }

.media { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 20px; background: #15130f; }
.media--text { aspect-ratio: 4 / 5; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media__cap { position: absolute; inset: auto 0 0 0; padding: 5rem 1.25rem 1.25rem; color: #fff; background: linear-gradient(to top, rgb(8 7 6 / 0.92) 0%, rgb(8 7 6 / 0.72) 55%, transparent 100%); }
.media__cap p { margin: 0.55rem 0 0; color: #f3f1ed; text-wrap: pretty; }
.media__cap strong { display: block; margin-top: 0.5rem; font-weight: 600; }
.media--clip { aspect-ratio: 4 / 5; }
.sound { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgb(15 13 10 / 0.72); color: #fff; font-size: 0.78rem; font-weight: 500; }

.post__foot { display: flex; align-items: center; gap: 0.15rem; padding: 0 0.25rem 0.1rem; }
.act { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; transition: background-color 140ms var(--ease), color 140ms var(--ease), transform 120ms var(--ease); }
.act:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .act:hover { background: var(--soft); } }
.js-like[aria-pressed="true"] { color: var(--accent); }
.js-like[aria-pressed="true"] .i { fill: currentColor; }
.post__more { margin-left: auto; padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--soft); font-size: 0.88rem; font-weight: 500; white-space: nowrap; transition: background-color 140ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .post__more:hover { background: #e9e8e5; } }

.collage { display: grid; gap: 4px; overflow: hidden; border-radius: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "a a b" "a a c" "d e e" "f e e"; }
.collage a { display: block; min-width: 0; aspect-ratio: 1; overflow: hidden; background: #f2f2f0; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: scale 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .collage a:hover img { scale: 1.04; } }
.collage__a { grid-area: a; } .collage__b { grid-area: b; } .collage__c { grid-area: c; } .collage__d { grid-area: d; } .collage__e { grid-area: e; } .collage__f { grid-area: f; }
@media (min-width: 801px) { .collage { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "a a b c" "a a e e" "d f e e"; } }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.tiles--1 { grid-template-columns: 1fr; }
.tiles li { padding: 0.9rem 1rem; border-radius: var(--r-s); background: var(--soft); }
.tiles b { display: block; font-weight: 600; line-height: 1.25; }
.tiles span { display: block; margin-top: 0.15rem; font-size: 0.86rem; color: var(--ink-2); line-height: 1.3; }

/* journey post: three stickman steps, one arrow to the next. Each stage keeps its colour so later posts can refer to it. */
.bm { margin: 0; }
.bm__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.st { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 0.9rem; padding: 0.75rem; border-radius: 20px; color: var(--ink); }
.st__name { display: block; font-size: 0.85rem; font-weight: 700; opacity: 0.8; }
.post .st h3 { margin: 0.15rem 0 0; font-family: var(--display); font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.9rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
.st p { margin: 0.35rem 0 0; font-size: 0.92rem; font-weight: 500; line-height: 1.3; }
.st--a { background: #6b9bff; color: #141311; }
.st--o { background: #ffc531; }
.st--s { background: #1fbf85; }
.st--b { background: var(--accent); color: var(--on-accent); }
.bm__arrow { display: grid; place-items: center; }
.bm__arrow svg { width: 2rem; height: 2rem; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* stage example post: one video for a stage, and what it does there */
.ex { display: grid; gap: 0.7rem; padding: 0.9rem; border-radius: 20px; }
.swipe { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.swipe::-webkit-scrollbar { display: none; }
.swipe > .ex { scroll-snap-align: start; align-content: start; }
.swipe__dots { display: flex; justify-content: center; gap: 0.35rem; margin-top: -0.2rem; }
.swipe__dots i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ink); opacity: 0.2; transition: opacity 0.2s, width 0.2s; }
.swipe__dots i.on { width: 1.2rem; border-radius: 99px; opacity: 0.85; }
.post .ex h2 { margin: 0; font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.9rem); line-height: 1.05; }
.ex__row { display: grid; grid-template-columns: 42% 1fr; gap: 0.9rem; align-items: center; }
.ex .step__slot { border-color: color-mix(in srgb, currentColor 50%, transparent); color: inherit; }
.ex__why b { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; opacity: 0.85; }
.ex__why ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.ex__why li { padding-left: 1.1rem; position: relative; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.ex__why li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.ex__next { margin: 0; font-size: 0.9rem; font-weight: 600; opacity: 0.85; }

/* case study post: JFit's four promo videos and what each one covers */
.cs__note { margin: -0.2rem 0 0; padding-inline: 0.35rem; color: var(--ink-2); font-size: 0.92rem; line-height: 1.35; }
.cs__cover { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.cs__cover li { display: grid; gap: 0.05rem; padding: 0.45rem 0.7rem; border-radius: 10px; font-size: 0.82rem; line-height: 1.25; }
.cs__cover b { font-size: 0.68rem; font-weight: 700; opacity: 0.85; }
.cs__cover span { font-weight: 600; }
.post .cs__end { margin: 0.2rem 0 0; padding-inline: 0.35rem; font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.cs__end em { font-style: normal; color: var(--accent); }

/* case study "notice how" note */
.post .cs__notice { margin: -0.3rem 0 0; padding-inline: 0.35rem; color: var(--ink-2); font-size: 0.85rem; line-height: 1.35; }
.cs__stages { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 0.3rem; margin: 0; padding-inline: 0.35rem; font-size: 0.8rem; color: var(--ink-2); }
.cs__stages span { padding: 0.15rem 0.5rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; }

/* case study: how the videos were filmed */
.cs__tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.cs__tags li { display: grid; gap: 0.2rem; align-content: start; padding: 0.6rem 0.55rem; border-radius: 12px; background: #111; color: #fff; }
.cs__tags b { font-size: 0.82rem; line-height: 1.15; }
.cs__tags span { font-size: 0.72rem; line-height: 1.25; opacity: 0.75; }

/* to-do post: everything a proper strategy takes */
.tdl { list-style: none; margin: 0; padding: 0 0.35rem; display: grid; }
.tdl li { display: grid; grid-template-columns: 1.4rem 1fr; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid #ebeae6; font-size: 1.02rem; font-weight: 500; line-height: 1.3; }
.tdl__free { display: inline-block; margin-left: 0.35rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.78rem; font-style: normal; font-weight: 700; vertical-align: 0.1em; }
.tdl li:last-child { border-bottom: 0; }
.tdl i { width: 1.4rem; height: 1.4rem; border: 2px solid var(--ink); border-radius: 6px; }

/* real estate post: one wide film, four vertical tours */
.re__main, .re__clip { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 14px; background: #15130f; }
.re__main { aspect-ratio: 16 / 9; }
.re__clip { aspect-ratio: 9 / 16; }
.re__main video, .re__clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.re__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.re__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.re__grid--3 .sound { left: 0.35rem; right: 0.35rem; bottom: 0.35rem; width: fit-content; max-width: calc(100% - 0.7rem); padding: 0.2rem 0.5rem; font-size: 0.7rem; line-height: 1.2; }
.post h3.re__who { margin: 0.3rem 0 -0.3rem; padding-inline: 0.35rem; font-size: 0.95rem; font-weight: 700; }

/* journey steps: videos for each step between stages */
.step { padding-top: 1rem; }
.step h2, .post.step h2 { padding-inline: 0.35rem; font-size: 1.45rem; }
.step__chips { display: flex; gap: 0.25rem; padding-inline: 0.35rem; }
.step__chips i { width: 1.6rem; height: 0.5rem; border-radius: 999px; }
.chip--a { background: #6b9bff; } .chip--o { background: #ffc531; } .chip--s { background: #1fbf85; } .chip--b { background: var(--accent); }
.step__clips { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0.45rem; align-items: start; }
.step__type { display: grid; gap: 0.15rem; min-width: 0; font-size: 0.8rem; line-height: 1.2; }
.step__type b { margin-top: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.step__type > span:last-child:not(.step__slot) { color: var(--ink-2); }
.step__extra { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.75rem; padding: 0.8rem 1rem; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 0.92rem; line-height: 1.25; transition: transform 120ms var(--ease), background-color 140ms var(--ease); }
.step__extra:active { transform: scale(0.98); }
.step__extra b { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
.step__extra i { font-style: normal; font-size: 1.3rem; }
@media (hover: hover) and (pointer: fine) { .step__extra:hover { background: #ff6e42; } }
.step__slot, .step__clip { display: grid; place-items: center; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; }
.step__slot { border: 2px dashed #cfcdc8; color: var(--ink-2); font-size: 0.82rem; }
.step__clip { background: #15130f; }
.step__clip video { width: 100%; height: 100%; object-fit: cover; }

.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.job { display: grid; gap: 0.15rem; text-align: center; }
.job__f { display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-s); background: #15130f; margin-bottom: 0.45rem; }
.job video { width: 100%; height: 100%; object-fit: cover; }
.job b { font-weight: 600; }
.job > span:last-child { font-size: 0.84rem; color: var(--ink-2); line-height: 1.25; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; counter-reset: s; }
.steps li { counter-increment: s; }
.steps a { display: grid; height: 100%; gap: 0.1rem; align-content: start; padding: 0.75rem; border-radius: var(--r-s); background: var(--soft); transition: background-color 140ms var(--ease); }
.steps a::before { content: counter(s); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-bottom: 0.35rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 0.78rem; font-weight: 600; }
.steps b { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.steps span { font-size: 0.8rem; color: var(--ink-2); line-height: 1.25; }
@media (hover: hover) and (pointer: fine) { .steps a:hover { background: #ecebe8; } }

.post--orange { background: var(--accent); color: var(--on-accent); }
.post--orange .post__head span, .post--orange .post__body p { color: var(--on-accent); }
.post--orange h2 { font-size: clamp(2.2rem, 1.7rem + 2.2vw, 3.2rem); }
.post--orange .post__body { padding-block: 1.5rem; }
.post--orange .act:hover { background: rgb(0 0 0 / 0.08); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice__c { padding: 1rem; border-radius: var(--r-s); background: var(--soft); }
.choice__c--us { background: var(--ink); color: #fff; }
.choice__art { margin-bottom: 0.7rem; }
.choice h3 { margin: 0 0 0.65rem; font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.choice__c--us h3 { color: var(--accent); }
.choice ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; line-height: 1.3; }
.choice__c:not(.choice__c--us) ul { color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.stats div { padding: 0.9rem; border-radius: var(--r-s); background: var(--soft); text-align: center; }
.stats dt { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1; letter-spacing: -0.02em; }
.stats dd { margin: 0.35rem 0 0; font-size: 0.78rem; line-height: 1.25; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 0.92rem; white-space: nowrap; transition: transform 120ms var(--ease), background-color 140ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--main { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .btn--main:hover { background: #ff6e42; } }
.post__cta { display: grid; justify-items: center; gap: 0.6rem; padding: 0.5rem 0.5rem 0.75rem; text-align: center; }
.post__cta .btn { font-size: 1.05rem; padding: 0.9rem 1.6rem; }
.post__cta p { margin: 0; font-size: 0.85rem; color: var(--ink-2); }
.post__cta p a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.feed__end { margin: 0.5rem 0 0; text-align: center; color: var(--ink-2); font-size: 0.9rem; }
.feed__end a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; }
.draft-flag { margin: 0; text-align: center; font-size: 0.72rem; color: var(--ink-2); }

/* right */
.profile { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 0 1rem 1rem; text-align: center; flex: none; overflow: hidden; }
.profile__cover { margin-inline: -1rem; height: 6rem; }
.profile__cover img { width: 100%; height: 100%; object-fit: cover; }
.profile__av { position: relative; width: 4.6rem; height: 4.6rem; margin: -2.3rem auto 0; border-radius: 50%; border: 4px solid var(--card); }
.profile h2 { margin: 0.4rem 0 0; font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.profile__at { margin: 0; font-size: 0.85rem; color: var(--ink-2); }
.profile dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0.9rem 0; }
.profile dl div + div { border-left: 1px solid var(--line); }
.profile dt { font-weight: 600; font-size: 1.1rem; }
.profile dd { margin: 0; font-size: 0.76rem; color: var(--ink-2); }
.profile__btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.4rem; }
.profile__note { margin: 0.6rem 0 0; font-size: 0.72rem; color: var(--ink-2); }
.panel { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 1rem; flex: none; }
.panel h2 { margin: 0 0 0.6rem; font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.person { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; }
.person img { width: 2.4rem; height: 2.4rem; border-radius: 50%; object-fit: cover; }
.person span { min-width: 0; flex: 1; }
.person b, .person i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person b { font-size: 0.88rem; font-weight: 600; }
.person i { font-style: normal; font-size: 0.76rem; color: var(--ink-2); }
.person em { font-style: normal; flex: none; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.76rem; font-weight: 500; }
.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.explore a { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-s); background: #15130f; }
.explore img { width: 100%; height: 100%; object-fit: cover; }
.explore span { position: absolute; inset: auto 0 0 0; padding: 1.4rem 0.6rem 0.5rem; font-size: 0.8rem; font-weight: 600; color: #fff; background: linear-gradient(to top, rgb(8 7 6 / 0.85), transparent); }


/* story / video viewer */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; background: transparent; color: #fff; }
.viewer::backdrop { background: rgb(7 6 5 / 0.94); }
.viewer[open] { display: grid; place-items: center; }
.viewer__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 3rem 1rem 4.5rem; min-height: 0; }
.viewer__stage video, .viewer__stage img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 16px; }
.viewer__stage > * { grid-area: 1 / 1; }
.viewer__bars { position: fixed; top: 0.9rem; left: 50%; translate: -50% 0; z-index: 3; display: flex; gap: 4px; width: min(26rem, calc(100vw - 5.5rem)); }
.viewer__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.3); }
.viewer__bars i.on { background: var(--accent); }
.viewer__close { position: fixed; top: 0.5rem; right: 0.6rem; z-index: 4; width: 2.75rem; height: 2.75rem; font-size: 1.7rem; line-height: 1; border-radius: 50%; color: #fff; background: rgb(30 27 22 / 0.7); }
.viewer__nav { position: fixed; top: 3.5rem; bottom: 5rem; width: 28%; z-index: 2; }
.viewer__nav--prev { left: 0; } .viewer__nav--next { right: 0; }
.viewer__more { position: fixed; bottom: 1rem; left: 50%; translate: -50% 0; z-index: 3; }
.viewer.is-single .viewer__nav, .viewer.is-single .viewer__bars, .viewer.is-single .viewer__more { display: none; }
.viewer.is-single .viewer__stage { padding: 3.5rem 1rem 1rem; }

@media (max-width: 1180px) { .app { grid-template-columns: 13.5rem minmax(0, 38rem); } .right { display: none; } }
@media (max-width: 800px) {
  .app { display: block; padding: 0; }
  .side { display: none; }
  .feed { padding: 0 0.6rem calc(6rem + env(safe-area-inset-bottom)); gap: 0.85rem; }
  .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; margin-inline: -0.6rem; padding: 0.55rem 1rem; background: rgb(243 243 241 / 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .topbar img { height: 1.9rem; width: auto; }
  .topbar__msg { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); }
  .post { scroll-margin-top: 4rem; }
  .viewer__stage { padding-inline: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* first post: three illustrated statements */
.ow { display: grid; gap: 0.6rem; padding: 0.75rem; border-radius: 20px; background: var(--accent); color: var(--on-accent); }
.ow__row { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 1rem; }
.ow__art { aspect-ratio: 1; padding: 0.35rem; border-radius: var(--r-s); background: #fff; }
.ow__art svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ow__art .s { stroke: var(--ink); stroke-width: 3; }
.ow__art .w { fill: #fff; }
.ow__art .o { fill: var(--accent); }
.ow__art .k { fill: var(--ink); }
.ow__art .wf { fill: #fff; }
.ow__art .s2 { stroke: #fff; stroke-width: 2.5; }
.ow__art .so { stroke: var(--accent); stroke-width: 3; }
.ow__art .d { stroke: #a8a6a0; stroke-width: 2.5; stroke-dasharray: 4 5; }
.post .ow__say { margin: 0; font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.9rem); line-height: 1.08; letter-spacing: -0.025em; }
@media (prefers-reduced-motion: no-preference) {
  .ow--play .ow__beat { opacity: 0; translate: 0 10px; }
  .ow--play .ow__scribble { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .ow--play.in .ow__beat { opacity: 1; translate: 0 0; transition: opacity 380ms var(--ease), translate 380ms var(--ease); transition-delay: calc(var(--n) * 600ms); }
  .ow--play.in .ow__scribble { stroke-dashoffset: 0; transition: stroke-dashoffset 1000ms ease-in-out 1300ms; }
}

/* text-only post, like Threads or X */
.tw { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.7rem; padding: 1rem 1rem 0.5rem; }
.tw__who { margin: 0; line-height: 1.25; }
.tw__who b { font-weight: 600; }
.tw__who span { font-size: 0.86rem; color: var(--ink-2); }
.tw__text { margin-top: 0.4rem; display: grid; gap: 0.7rem; font-size: 1.14rem; line-height: 1.38; }
.tw__text h2, .post .tw__text h2 { font-family: var(--text); font-size: inherit; font-weight: 400; line-height: inherit; letter-spacing: 0; }
.tw__text p { margin: 0; text-wrap: pretty; }
.tw__text em { font-style: normal; font-weight: 800; color: var(--accent); }
.tw .post__foot { margin: 0.3rem 0 0 -0.75rem; padding: 0; }

/* desktop: keep each photo post and its message on one screen */
@media (min-width: 801px) { .media--text { aspect-ratio: 1 / 0.86; max-height: 66vh; width: 100%; } }

/* keep the phone page from wiggling sideways */
html { overflow-x: clip; }

/* the feed column never grows past the screen, even if one item is too wide */
.feed { grid-template-columns: minmax(0, 1fr); }
.post { grid-template-columns: minmax(0, 1fr); }
.cs__stages { flex-wrap: wrap; gap: 0.25rem; font-size: 0.75rem; }
.cs__stages span { white-space: nowrap; padding: 0.15rem 0.42rem; font-size: 0.68rem; }

/* opening post: one wide drawing, rocks thrown at a wall */
.ow__art--wide { aspect-ratio: auto; padding: 0.8rem 0.6rem 0.4rem; }
.ow__art--wide svg { height: auto; }
.ow__art .g { stroke: var(--ink); stroke-width: 2; }
.ow__art .r { fill: #d9d6ce; stroke-width: 2.5; }
.ow__art--wide .o { stroke-width: 2.5; }
.post .ow__line { margin: 0; padding-inline: 0.35rem; font-family: var(--display); font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.7rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.ow__line em { font-style: normal; color: var(--ink); }
/* "But don't worry": lines rise in one by one, then "properly yet" gets underlined */
.tw--reveal .tw__text em { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 0.12em no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .ow--play.tw--reveal .tw__text > * { opacity: 0; translate: 0 8px; }
  .ow--play.tw--reveal.in .tw__text > * { opacity: 1; translate: 0 0; transition: opacity 450ms var(--ease), translate 450ms var(--ease); }
  .ow--play.tw--reveal .tw__text em { background-size: 0 0.12em; }
  .ow--play.tw--reveal.in .tw__text em { background-size: 100% 0.12em; transition: background-size 600ms var(--ease) 500ms; }
}

/* hook tweet: the line that turns "nice photos" into "you need a reason" */
.tw--hook .tw__text h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.8vw, 2.7rem); line-height: 1; letter-spacing: -0.035em; }


/* ice cream photos float in to their spots once the visitor scrolls to them */
@media (prefers-reduced-motion: no-preference) {
  .collage.ow--play a { opacity: 0; translate: var(--fx) var(--fy); rotate: var(--fr); scale: 0.94; }
  .collage.ow--play.in a { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; transition: opacity 700ms var(--ease), translate 1000ms var(--ease), rotate 1000ms var(--ease), scale 1000ms var(--ease); }
  .collage__a { --fx: -26px; --fy: -18px; --fr: -3deg; }
  .collage__b { --fx: 24px; --fy: -22px; --fr: 4deg; }
  .collage__c { --fx: 28px; --fy: 4px; --fr: -3deg; }
  .collage__d { --fx: -26px; --fy: 10px; --fr: 3deg; }
  .collage__e { --fx: 22px; --fy: 26px; --fr: 2deg; }
  .collage__f { --fx: -20px; --fy: 26px; --fr: -4deg; }
  .collage.in .collage__b { transition-delay: 120ms; }
  .collage.in .collage__c { transition-delay: 240ms; }
  .collage.in .collage__d { transition-delay: 360ms; }
  .collage.in .collage__e { transition-delay: 480ms; }
  .collage.in .collage__f { transition-delay: 600ms; }
}

/* the closing line under the opening drawing */
.post .ow__line--late { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.05; }

/* opening drawing sits in a plain white box, not orange */
.ow { background: #fff; color: var(--ink); }
.ow--play.in .ow__beat.ow__line--late { transition-delay: var(--hit, 1.7s); }

/* stage swipe cards: the card in view floats up a little; arrow buttons for mouse users */
.swipe__wrap { position: relative; }
.swipe { position: relative; padding: 10px 0 14px; margin: -10px 0 -14px; }
.swipe > .ex { transition: translate 380ms var(--ease), box-shadow 380ms var(--ease); }
.swipe > .ex.is-on { translate: 0 -8px; box-shadow: 0 12px 22px -14px rgb(15 13 10 / 0.45); }
@media (prefers-reduced-motion: reduce) { .swipe > .ex { transition: none; } }

.post .swipe__hint { margin: -1.35rem 0 0; padding-inline: 0.35rem; text-align: right; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .swipe { cursor: grab; } .swipe img, .swipe video { -webkit-user-drag: none; user-select: none; } }
.swipe.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.swipe.is-drag > .ex { pointer-events: none; }

/* type and tap-target pass (phone first): one clear size per job, nothing under 12px, every tap at least 44px tall */
.post h1 { font-size: clamp(1.9rem, 1.55rem + 1.4vw, 2.5rem); line-height: 1.04; }
.post .ex h2 { font-weight: 700; }
.post .ow__line--late { font-size: clamp(1.4rem, 1.25rem + 0.8vw, 1.8rem); }
.cs__stages { font-size: 0.82rem; }
.cs__stages span { font-size: 0.75rem; padding: 0.18rem 0.5rem; }
.post .cs__notice { font-size: 0.9rem; line-height: 1.4; }
.choice ul { font-size: 0.97rem; line-height: 1.3; }
.post__more { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0.6rem; }
.post__cta p { font-size: 0.9rem; }
.post__cta p a, .feed__end a { display: inline-block; padding-block: 0.8rem; margin-block: -0.8rem; }

/* a video attached to a tweet-style post, kept to a sensible size */
.tw__split { display: grid; grid-template-columns: minmax(0, 1fr) 8rem; gap: 0.9rem; align-items: center; margin-top: 0.3rem; }
.tw__split .tw__text { margin: 0; gap: 0.55rem; }
.post .tw__split .tw__text h2 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.tw__split .tw__text p { font-size: 0.98rem; line-height: 1.35; color: var(--ink-2); }
.tw__split .tw__text em { display: block; font-family: var(--display); font-size: 1.12rem; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.tw__main .tw__media { display: block; width: 100%; margin: 0; }
.tw__media .sound { left: 0.4rem; bottom: 0.4rem; padding: 0.2rem 0.5rem; font-size: 0.72rem; }
.tw--bare { grid-template-columns: minmax(0, 1fr); padding-top: 1.1rem; }
.tw--bare .post__foot { margin-left: -0.35rem; }
.av--emoji { display: grid; place-items: center; flex: none; background: var(--soft); font-size: 1.3rem; line-height: 1; }

/* stage cards: a slightly bigger video beside the points */
.ex__row { grid-template-columns: 48% 1fr; gap: 0.75rem; }
.swipe .ex__why ul { gap: 0.45rem; }
.swipe .ex__why li { font-size: 0.92rem; line-height: 1.22; }
.swipe .ex__why b { font-size: 0.78rem; }
.stories[hidden] { display: none; }

/* final UX pass: logo tap area */
a[aria-label="FYC home"] { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* desktop focus mode: once the visitor scrolls, the side columns blur back,
   the feed widens over them, and the tab bar pops up (tabs.css). home.js sets body.is-focus. */
@media (min-width: 801px) {
  .side, .right { transition: filter 420ms ease, opacity 420ms ease; }
  .feed { position: relative; z-index: 2; transition: margin 460ms cubic-bezier(0.23, 1, 0.32, 1); }
  .is-focus .side, .is-focus .right { filter: blur(7px); opacity: 0.4; pointer-events: none; user-select: none; }
  .is-focus .side *, .is-focus .right * { visibility: inherit; }
}
@media (min-width: 801px) and (max-width: 1180px) { .is-focus .feed { margin-left: -7rem; } }
@media (min-width: 1181px) { .is-focus .feed { margin-inline: -6.5rem; } }
@media (prefers-reduced-motion: reduce) { .side, .right, .feed { transition: none !important; } }

/* stage-card key words: plain on phones, highlighted on desktop */
.ex__why li b { font-weight: inherit; }

/* desktop only: larger tweets, fuller stage cards, bigger story post */
@media (min-width: 801px) {
  .tw { grid-template-columns: 3rem minmax(0, 1fr); gap: 0.85rem; padding: 1.2rem 1.3rem 0.6rem; }
  .tw > .av { width: 3rem; height: 3rem; }
  .tw__who b { font-size: 1.06rem; }
  .tw__who span { font-size: 0.95rem; }
  .tw__text { font-size: 1.38rem; line-height: 1.36; gap: 0.8rem; }

  .post .ex h2 { font-size: 2.15rem; }
  .ex .st__name { font-size: 0.95rem; }
  .ex { padding: 1.2rem; gap: 0.9rem; }
  .ex__row { grid-template-columns: 44% 1fr; gap: 1.4rem; }
  .swipe .ex__why b:first-child, .ex__why > b { display: block; margin-bottom: 0.85rem; font-family: var(--display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; opacity: 1; padding-bottom: 0.5rem; border-bottom: 2px solid currentColor; width: fit-content; }
  .swipe .ex__why ul { gap: 0.85rem; }
  .swipe .ex__why li { font-size: 1.28rem; line-height: 1.25; padding-left: 1.3rem; }
  .swipe .ex__why li::before { top: 0.42em; width: 0.55rem; height: 0.55rem; }
  .ex__why li b { font-weight: 800; padding: 0 0.18em; margin: 0 -0.05em; border-radius: 4px; background: color-mix(in srgb, currentColor 20%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

  .tw__split { grid-template-columns: minmax(0, 1fr) 15rem; gap: 1.6rem; }
  .post .tw__split .tw__text h2 { font-size: 2.35rem; }
  .tw__split .tw__text p { font-size: 1.2rem; }
  .tw__split .tw__text em { font-size: 1.6rem; }
}
/* inline key words are not the card heading */
.ex__why li b, .swipe .ex__why li b, .swipe .ex__why li b:first-child { display: inline; margin: 0; padding: 0; border: 0; width: auto; font-family: inherit; font-size: inherit; letter-spacing: inherit; opacity: 1; }
@media (min-width: 801px) {
  .swipe .ex__why li b, .swipe .ex__why li b:first-child { font-weight: 800; padding: 0 0.18em; margin: 0 -0.05em; border-radius: 4px; background: color-mix(in srgb, currentColor 20%, transparent); }
}
@media (min-width: 801px) { .tw.tw--bare { grid-template-columns: minmax(0, 1fr); } }

/* Consideration and Conversion: the notes beside the video in white */
.ex.st--o .ex__why, .ex.st--b .ex__why { color: #fff; }
.ex.st--o .ex__why { text-shadow: 0 1px 2px rgb(90 60 0 / 0.35); }

/* desktop: stage cards as video | label, headline, notes */
@media (min-width: 801px) {
  .swipe > .ex { display: grid; grid-template-columns: 44% minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: "vid ." "vid name" "vid head" "vid why" "vid ."; column-gap: 1.6rem; row-gap: 0; padding: 1.2rem; align-content: stretch; }
  .swipe > .ex .ex__row { display: contents; }
  .swipe > .ex .ex__row > :first-child { grid-area: vid; align-self: center; }
  .swipe > .ex .st__name { grid-area: name; justify-self: start; margin: 0 0 0.9rem; padding: 0.35rem 0.7rem; border-radius: 99px; background: #141311; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
  .swipe > .ex h2 { grid-area: head; margin: 0; padding-bottom: 1.1rem; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); font-size: 2.3rem; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
  .swipe > .ex .ex__why { grid-area: why; padding-top: 1.1rem; }
  .swipe .ex__why > b { margin: 0 0 0.75rem; padding: 0; border: 0; font-family: var(--text); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
  .swipe .ex__why li { font-size: 1.2rem; }

  /* black and white: dark headlines on the light cards, white everywhere on blue */
  .swipe > .st--o h2, .swipe > .st--b h2 { color: #141311; }
  .swipe > .st--a .st__name { background: #141311; color: #fff; }
  .swipe > .st--o .ex__why { text-shadow: 0 1px 2px rgb(90 60 0 / 0.4); }
}

/* desktop stage cards: white headline, black notes */
@media (min-width: 801px) {
  .swipe > .ex h2, .swipe > .st--o h2, .swipe > .st--b h2 { color: #fff; }
  .swipe > .ex .ex__why, .swipe > .ex.st--o .ex__why, .swipe > .ex.st--b .ex__why { color: #141311; text-shadow: none; }
  .swipe > .ex .ex__why > b { opacity: 1; }
  .swipe > .st--o h2 { text-shadow: 0 1px 2px rgb(90 60 0 / 0.35); }
}

/* card notes: key words stay bold, no highlight box */
@media (min-width: 801px) { .swipe .ex__why li b, .swipe .ex__why li b:first-child, .ex__why li b { background: none; padding: 0; margin: 0; border-radius: 0; } }
