@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,400;8..144,600;8..144,700&display=swap');
@font-face { font-family: Syne; src: url('/fonts/Syne-VariableFont_wght.ttf') format('truetype'); font-weight: 400 800; font-display: swap; }

.usados-copados {
  --green: #08b890;
  --green-soft: #d9f1eb;
  --pink: #f5579a;
  --pink-soft: #ffdfea;
  --yellow: #ffdf70;
  --blue: #2376df;
  --orange: #ffbe66;
  --ink: #202020;
  --paper: #fffaf3;
  --white: #fff;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto Flex', Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
}

.usados-copados::selection { background: var(--yellow); color: var(--ink); }
.usados-copados .case-container { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.project-header { background: #fff; }
.usados-copados .project-header .case-header { width: min(1280px, calc(100% - 96px)); min-height: 88px; color: #000; }
.usados-copados .case-logo { display: inline-flex; align-items: center; justify-content: center; }
.usados-copados .case-logo img { display: block; width: 48px; height: 48px; object-fit: contain; }
.usados-copados .case-nav { gap: 28px; }
.usados-copados .case-nav a { font: 700 14px/1.3 Syne, Arial, sans-serif; color: #000; opacity: .7; }
.usados-copados .case-nav a:hover, .usados-copados .case-nav a[aria-current="page"] { opacity: 1; }
.usados-copados .case-nav a[aria-current] { text-decoration: underline; text-decoration-color: #F5D052; text-decoration-thickness: 3px; text-underline-offset: 7px; }

.hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 64px) 0 0; background: var(--yellow); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(480px, 1.16fr); gap: clamp(38px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 650px; }
.eyebrow { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.eyebrow span,
.chapter-head > span,
.identity-type small,
.foundation-grid small,
.atomic-copy small,
.identity-details small,
.reflection-grid > div > span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { padding: 8px 12px 6px; border-radius: 999px; background: var(--white); }
.eyebrow span:last-child { background: var(--green-soft); }
.project-wordmark { width: min(290px, 70%); height: auto; margin-bottom: 28px; }
.hero h1 { max-width: 15ch; margin: 0; font-size: clamp(2.7rem, 4.25vw, 4.9rem); line-height: .94; letter-spacing: -.055em; text-wrap: balance; }
.hero-lede { max-width: 650px; margin: 28px 0 0; font-size: clamp(1.03rem, 1.3vw, 1.25rem); line-height: 1.55; }
.hero-scope { max-width: 650px; margin: 18px 0 0; font-size: .95rem; line-height: 1.55; }
.hero-visual { display: block; margin: 0; overflow: hidden; border-radius: 64px 34px 64px 34px; background: var(--green-soft); box-shadow: 0 20px 50px rgba(32,32,32,.13); }
.hero-visual img { display: block; width: 100%; height: auto; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 5vw, 64px); overflow: hidden; border-radius: 42px 42px 0 0; background: var(--paper); box-shadow: 0 -10px 36px rgba(32,32,32,.08); }
.hero-meta > div { padding: 23px 24px 21px; border-right: 1px solid rgba(32,32,32,.18); }
.hero-meta > div:last-child { border: 0; }
.hero-meta small { display: block; color: #666; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-meta strong { display: block; margin: 4px 0 2px; font-size: 1.03rem; }
.hero-meta span { display: block; color: #5d5d5d; font-size: .78rem; line-height: 1.4; }

.section-nav { position: sticky; z-index: 10; top: 0; overflow: auto; background: var(--ink); color: #fff; }
.section-nav .case-container { display: flex; justify-content: center; gap: clamp(22px, 4vw, 58px); white-space: nowrap; }
.section-nav a { position: relative; padding: 15px 0 12px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; transition: color .18s; }
.section-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; border-radius: 999px; background: var(--yellow); transform: scaleX(0); transform-origin: center; transition: transform .18s; }
.section-nav a:hover,
.section-nav a.is-active { color: var(--yellow); }
.section-nav a.is-active::after { transform: scaleX(1); }

.chapter { --content-offset: 280px; padding-block: clamp(48px, 5vw, 72px); }
.chapter-content { width: min(960px, calc(100% - var(--content-offset))); margin-left: var(--content-offset); }
.chapter-content .chapter-intro { margin-left: 0; }
.chapter-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 48px; }
.chapter-head > span,
.reflection-grid > div > span { position: relative; display: block; padding-top: 15px; }
.chapter-head > span::before,
.reflection-grid > div > span::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; border-radius: 999px; background: var(--pink); }
.chapter-head h2 { margin: 0; font-size: clamp(2.7rem, 4.7vw, 5.25rem); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.chapter-head.light { color: #fff; }
.chapter-head.light > span::before { background: var(--yellow); }
.chapter-intro { max-width: 850px; margin: 0 0 56px 280px; }
.chapter-intro p { margin: 0; font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.65; }
.light-copy { color: #e9e9e9; }

.media-placeholder { display: grid; place-items: center; min-height: 280px; border: 2px dashed rgba(32,32,32,.34); border-radius: 42px 24px 42px 24px; background: rgba(255,255,255,.52); color: rgba(32,32,32,.62); }
.media-placeholder span { padding: 10px 14px 8px; border-radius: 999px; background: rgba(255,255,255,.78); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.identity-image { display: block; width: 100%; padding-block: 24px; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 16px 38px rgba(32,32,32,.11); }
.identity-image img { display: block; width: 100%; height: auto; max-height: min(540px, 70svh); object-fit: contain; }
.media-placeholder--moodboard { aspect-ratio: 16 / 10; min-height: 0; }
.media-placeholder--foundations { aspect-ratio: 1.2 / 1; min-height: 0; }
.media-placeholder--ui-kit { aspect-ratio: 16 / 9; min-height: 0; }
.media-placeholder--dark { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.1); color: rgba(255,255,255,.72); }
.media-placeholder--dark span { background: rgba(255,255,255,.12); }
.identity-details { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
.identity-details article { padding: 28px 30px; border-radius: 38px 22px 38px 22px; background: var(--green-soft); }
.identity-details article:nth-child(2) { background: var(--yellow); }
.identity-details small { display: block; margin-bottom: 12px; }
.identity-details h3 { margin: 0; font-size: 1.42rem; line-height: 1.2; }
.identity-details p { margin: 14px 0 0; font-size: .9rem; line-height: 1.55; }
.wide-evidence.identity-moodboard { margin-top: 28px; }
.wide-evidence.identity-moodboard > a { background: #faf9f4; }
.wide-evidence.style-guide > a { background: #E5E4E5; }

.foundations-band { background: var(--pink-soft); }
.foundation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; margin-bottom: 52px; border-radius: 44px 28px 44px 28px; background: #fff; box-shadow: 0 14px 34px rgba(32,32,32,.1); }
.foundation-grid article { padding: 30px 26px; border-right: 1px solid rgba(32,32,32,.16); }
.foundation-grid article:last-child { border: 0; }
.foundation-grid article:nth-child(2) { border-right: 0; }
.foundation-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(32,32,32,.16); }
.foundation-grid article:nth-child(1) { box-shadow: inset 0 8px 0 var(--pink); }
.foundation-grid article:nth-child(2) { box-shadow: inset 0 8px 0 var(--green); }
.foundation-grid article:nth-child(3) { box-shadow: inset 0 8px 0 var(--yellow); }
.foundation-grid article:nth-child(4) { box-shadow: inset 0 8px 0 var(--blue); }
.foundation-grid small { display: block; margin: 7px 0 16px; }
.foundation-grid h3 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
.foundation-grid p { margin: 13px 0 0; color: #555; font-size: .84rem; line-height: 1.5; }

.wide-evidence, .screen-sequences figure, .brand-application { margin: 0; }
.wide-evidence > a, .screen-sequences a, .brand-application > a { display: block; overflow: hidden; border-radius: 42px 24px 42px 24px; background: #fff; box-shadow: 0 16px 38px rgba(32,32,32,.11); }
.wide-evidence img, .screen-sequences img, .brand-application img { display: block; width: 100%; height: auto; }
.chapter-content .wide-evidence img { max-height: min(540px, 70svh); object-fit: contain; }
.wide-evidence figcaption, .screen-sequences figcaption { display: block; padding: 15px 6px 0; font-size: .8rem; line-height: 1.45; }
.wide-evidence figcaption b, .screen-sequences figcaption b { display: inline; margin-right: .55em; }
.wide-evidence figcaption span, .screen-sequences figcaption span { display: inline; color: #5d5d5d; }
.components-band { background: var(--ink); color: #fff; }
.wide-evidence--dark > a { background: #e5e5e5; }
.wide-evidence--dark figcaption span { color: #cfcfcf; }
.atomic-proof { display: grid; gap: 28px; margin-top: 70px; padding: 34px; border-radius: 52px 28px 52px 28px; background: var(--green); color: var(--ink); }
.atomic-copy { padding: 0; }
.atomic-copy small { display: block; margin-bottom: 14px; }
.atomic-copy h3 { margin: 0 0 19px; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1; }
.atomic-copy p { font-size: .95rem; line-height: 1.58; }
.atomic-copy code { display: inline-block; padding: 8px 12px 6px; border-radius: 999px; background: var(--paper); font: 600 .72rem/1.2 monospace; }
.atomic-images { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
.atomic-proof figure { min-width: 0; margin: 0; overflow: hidden; border-radius: 22px; background: #fff; }
.atomic-proof .atomic-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 16px; }
.atomic-proof figure img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.atomic-component { height: 542px; }
.atomic-panels { display: grid; grid-template-rows: repeat(2, 260px); gap: 22px; min-width: 0; }
.screen-sequences { display: grid; gap: 54px; }
.screen-sequences figure { min-width: 0; }
.screen-sequences a { padding: 0; background: #e8e8e8; }
.screen-sequences img { transform: scale(1.02); transform-origin: center; }
.brand-application { margin-top: 65px; }
.brand-application > a { background: var(--green-soft); }

.prototype-section { padding-block: clamp(48px, 5vw, 72px); background: var(--green); }
.prototype-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 30px; align-items: stretch; }
.prototype-overview,
.prototype-interactive { height: clamp(520px, 70vh, 640px); }
.prototype-overview { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; min-width: 0; padding: 20px; border-radius: 42px 24px 42px 24px; background: rgba(255,250,243,.34); box-shadow: 0 16px 38px rgba(32,32,32,.12); }
.prototype-flow-image { display: block; width: 100%; height: 100%; min-height: 0; overflow: hidden; border-radius: 26px 18px 26px 18px; background: #fff; }
.prototype-flow-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.prototype-interactive { display: flex; justify-content: center; min-width: 0; }
.prototype-embed { position: relative; width: auto; height: 100%; aspect-ratio: 9 / 16; overflow: hidden; border: 6px solid var(--ink); border-radius: 26px; background: var(--ink); box-shadow: 0 14px 34px rgba(32,32,32,.18); }
/* Magnify the embedded player, trimming its black margins rather than enlarging the outer card. */
.prototype-embed iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; transform: scale(1.2); transform-origin: center; }
.prototype-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 4px; }
.prototype-details p { margin: 0; font-size: .88rem; line-height: 1.55; }
.prototype-action { display: flex; justify-content: flex-end; }
.prototype-cta { display: inline-flex; justify-content: space-between; align-items: center; gap: 18px; width: auto; padding: 14px 20px; border-radius: 999px; background: var(--yellow); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 28px rgba(32,32,32,.13); }
.prototype-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(32,32,32,.17); }

.reflection { position: relative; overflow: hidden; padding-block: clamp(48px, 5vw, 72px); background: var(--pink); }
.reflection-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 120px); }
.reflection-grid > div > span { margin-bottom: 30px; }
.reflection-grid > div > span::before { background: var(--yellow); }
.reflection h2 { margin: 0; font-size: clamp(2.7rem, 4.8vw, 5.3rem); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.reflection-copy p { margin: 0 0 19px; font-size: 1rem; line-height: 1.65; }
.reflection-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }

.resource-link { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 50px; padding: 13px 19px; border: 0; border-radius: 999px; background: var(--yellow); color: #000; text-decoration: none; font-family: inherit; font-size: .88rem; font-weight: 700; line-height: inherit; text-align: left; }
.resource-link:hover, .resource-link:focus-visible { background: #ffe994; }

.zoom-link, .image-tab-link { position: relative; cursor: zoom-in; }
.zoom-link::after, .image-tab-link::after { content: 'View image'; position: absolute; right: 14px; bottom: 14px; padding: 8px 11px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: 0; transition: opacity .18s; }
.image-tab-link::after { content: 'View image ↗'; }
.zoom-link:hover::after, .zoom-link:focus-visible::after, .image-tab-link:hover::after, .image-tab-link:focus-visible::after { opacity: 1; }

.image-viewer[hidden] { display: none; }
.image-viewer { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr; background: rgba(22,22,22,.96); color: #fff; }
.image-viewer__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.22); background: #202020; }
.image-viewer__toolbar > span { min-width: 0; overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer__actions { display: flex; gap: 8px; }
.image-viewer button { appearance: none; padding: 9px 13px 7px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: transparent; color: #fff; font: 700 .7rem/1 'Roboto Flex', Roboto, Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.image-viewer button:hover, .image-viewer button:focus-visible { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.image-viewer__stage { position: relative; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; }
.image-viewer__stage.is-dragging { cursor: grabbing; }
.image-viewer__stage img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; transform-origin: center center; user-select: none; will-change: transform; }
.viewer-open { overflow: hidden; }
.usados-copados .case-footer { width: min(1280px, calc(100% - 96px)); margin: auto; border: 0; padding-block: 30px; color: var(--ink); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .hero-visual { max-width: 920px; }
}

@media (max-width: 980px) {
  .chapter { --content-offset: 230px; }
  .usados-copados .case-container, .usados-copados .project-header .case-header { width: calc(100% - 48px); }
  .usados-copados .case-nav { gap: 17px; }
  .usados-copados .case-nav a { font-size: 12px; }
  .chapter-head { grid-template-columns: 190px 1fr; }
  .chapter-intro { margin-left: 230px; }
  .foundation-grid { grid-template-columns: repeat(2, 1fr); }
  .foundation-grid article:nth-child(2) { border-right: 0; }
  .foundation-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(32,32,32,.16); }
  .atomic-images { grid-template-columns: 1fr; }
  .atomic-component { height: auto; }
  .atomic-component .atomic-media { max-height: min(540px, 70svh); }
  .atomic-component img { max-height: min(508px, calc(70svh - 32px)); }
  .prototype-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); gap: 24px; }
  .prototype-details { grid-template-columns: 1fr; gap: 16px; }
  .prototype-action { justify-content: flex-start; }
  .reflection-grid { grid-template-columns: 1fr; gap: 42px; }
  .reflection-grid > div > span { max-width: 240px; }
}

@media (max-width: 700px) {
  .chapter { --content-offset: 0px; }
  .usados-copados { font-size: 16px; }
  .usados-copados .case-container, .usados-copados .project-header .case-header { width: calc(100% - 32px); }
  .usados-copados .project-header .case-header { width: calc(100% - 36px); min-height: 74px; flex-wrap: wrap; gap: 18px; padding-block: 18px; }
  .usados-copados .case-nav { width: 100%; justify-content: space-between; gap: 7px; }
  .usados-copados .case-nav a { font-size: 11px; }
  .hero { padding-top: 34px; }
  .hero-grid { gap: 34px; }
  .hero-visual { border-radius: 38px 22px 38px 22px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .project-wordmark { width: 230px; }
  .hero-meta { grid-template-columns: 1fr; border-radius: 34px 34px 0 0; }
  .hero-meta > div, .hero-meta > div:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(32,32,32,.18); }
  .hero-meta > div:last-child { border-bottom: 0; }
  .section-nav .case-container { justify-content: flex-start; gap: 28px; }
  .chapter-head { display: block; margin-bottom: 32px; }
  .chapter-head > span { display: block; margin-bottom: 23px; }
  .chapter-head > span::before { width: 180px; }
  .chapter-intro { margin-left: 0; margin-bottom: 40px; }
  .identity-details { grid-template-columns: 1fr; }
  .foundation-grid { grid-template-columns: 1fr; }
  .foundation-grid article, .foundation-grid article:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(32,32,32,.16); }
  .foundation-grid article:last-child { border-bottom: 0; }
  .atomic-proof { grid-template-columns: 1fr; padding: 22px; border-radius: 38px 22px 38px 22px; }
  .atomic-copy { grid-column: auto; padding: 6px; }
  .screen-sequences a { padding: 0; }
  .prototype-layout { grid-template-columns: 1fr; }
  .prototype-details { grid-template-columns: 1fr; gap: 16px; }
  .prototype-action { justify-content: flex-start; }
  .prototype-overview { width: 100%; height: auto; }
  .prototype-flow-image, .prototype-flow-image img { height: auto; }
  .prototype-interactive { width: min(390px, 100%); height: min(620px, 82vh); min-height: 500px; justify-self: center; }
  .zoom-link::after, .image-tab-link::after { opacity: 1; font-size: .56rem; }
  .image-viewer__toolbar { align-items: flex-start; padding: 12px; }
  .image-viewer__toolbar > span { display: none; }
  .image-viewer__actions { width: 100%; justify-content: flex-end; }
  .image-viewer button { padding: 8px 10px 7px; font-size: .62rem; }
  .usados-copados .case-footer { width: calc(100% - 36px); padding-block: 30px; }
}

@media (max-width: 420px) {
  .reflection-resources { grid-template-columns: 1fr; }
  .usados-copados .case-nav a { font-size: 10px; }
  .eyebrow span { font-size: .61rem; }
  .identity-principles span { font-size: 2rem; }
}

/* Match the existing image-zoom affordance without obscuring the button label. */
.reflection-resources .resource-link.zoom-link::after{bottom:calc(100% + 8px);right:12px;background:var(--ink);color:#fff}
