/* GENERAL STYLING */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #433843;
  --hover: #d8ae45;
  --muted: #444444;
  --line: #e4e4e4;
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { background-color: #ffffff; color: #000000; line-height: 1.7; }
button { font: inherit; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 400; line-height: 1.3; }
p + p { margin-top: 18px; }

.container { width: 80%; max-width: 1000px; margin: 0 auto; }
main.container { padding-top: 70px; }
.skip { position: absolute; top: 12px; left: 20px; z-index: 3000; transform: translateY(-200%); background: #000; color: #fff; padding: 10px 16px; }
.skip:focus { transform: none; }

/* NAVIGATION MENU */

.navbar { position: absolute; top: 20px; right: 20px; z-index: 1000; font-family: "Inter", sans-serif; }

/* Keep the checkbox accessible to keyboard and screen-reader users. */
#menu-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.menu-icon { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; cursor: pointer; z-index: 2000; position: relative; }
.menu-icon::after { content: ""; position: absolute; inset: -12px; }
.menu-icon span { display: block; height: 3px; width: 100%; background: #000000; border-radius: 2px; transition: transform .3s ease, opacity .3s ease, background .3s ease; }
#menu-toggle:focus-visible + .menu-icon { outline: 2px solid var(--accent); outline-offset: 8px; }

.menu { list-style: none; position: fixed; top: 0; right: -250px; height: 100vh; height: 100dvh; width: min(250px, 100vw); background: rgba(0, 0, 0, .95); padding: 100px 30px; display: flex; flex-direction: column; gap: 25px; visibility: hidden; overflow-y: auto; transition: right .3s ease, visibility .3s ease; z-index: 1500; }
.menu li a { display: inline-flex; align-items: center; min-height: 44px; color: white; text-decoration: none; font-size: 1.4rem; font-weight: 300; letter-spacing: 1px; transition: color .2s ease; }
.menu li a:hover { color: #d8ae45; }
.menu li a:focus-visible { outline-color: #d8ae45; }
#menu-toggle:checked ~ .menu { right: 0; visibility: visible; }
#menu-toggle:checked + .menu-icon span { background: #ffffff; }
#menu-toggle:checked:focus-visible + .menu-icon { outline-color: #ffffff; }
#menu-toggle:checked + .menu-icon span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
#menu-toggle:checked + .menu-icon span:nth-child(2) { opacity: 0; }
#menu-toggle:checked + .menu-icon span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* PAGE INTRODUCTION */

.back { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .8rem; color: #333; text-decoration: none; }
.back:hover { color: var(--hover); }
.hero { max-width: 800px; margin: 0 auto; padding: 35px 0 50px; text-align: center; }
.eyebrow { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: 2rem; text-align: center; margin-top: 14px; margin-bottom: 24px; }
.hero-lead { font-size: 1rem; max-width: 570px; margin: 0 auto; color: #333333; }
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 6px 16px;
  margin-top: 22px;
  padding: 0;
  font-size: .75rem;
  color: var(--muted);
}

.tags li:not(:last-child)::after {
  content: "\00B7";
  padding-left: 16px;
}


.about-text .name {
  font-family: "WindSong", cursive;
  font-size: 2.4rem;
  font-weight: 900;
}

/* PROJECT OVERVIEW */

.project-overview { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-statement { min-width: 0; }
.cover-art { display: block; width: 100%; height: auto; }
.visual-overview p { padding: 16px 20px; text-align: center; font-size: .75rem; color: var(--muted); }
.details { display: grid; gap: 22px; padding: 30px; border-left: 1px solid var(--line); }
.details dt { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.details dd { font-size: .85rem; }

/* SECTION NAVIGATION */

.page-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.page-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .8rem; color: #333333; transition: color .2s ease; }
.page-nav a:hover { color: var(--hover); }

/* CASE STUDY SECTIONS */

.chapter { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; padding: 55px 0; border-bottom: 1px solid var(--line); }
.chapter-heading .eyebrow { margin-bottom: 12px; }
.chapter h2 { font-size: 1.5rem; }
.chapter-copy { min-width: 0; }
.chapter-copy > p { max-width: 65ch; color: var(--muted); font-size: .95rem; }
.chapter-copy .large { margin-bottom: 22px; font-size: 1.1rem; color: #000; }

/* RESEARCH METHODS AND FINDINGS */

.methods { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.methods h3 { font-size: 1rem; margin-bottom: 8px; }
.methods p { font-size: .85rem; color: var(--muted); }
.research-scope { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 28px; padding: 25px 0; border-top: 1px solid var(--line); }
.research-scope div { display: flex; align-items: baseline; gap: 10px; }
.research-scope dt { font-size: 1.75rem; line-height: 1; }
.research-scope dd { font-size: .75rem; color: var(--muted); }
.chapter-copy .research-note { font-size: .75rem; }
.insights { margin-top: 28px; }
.insight { display: grid; grid-template-columns: 1fr 1.5fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.insight h3 { font-size: 1rem; line-height: 1.5; }
.insight p { font-size: .85rem; color: var(--muted); }

/* BRAND STRATEGY */

.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--line); }
.audiences h3 { font-size: 1.05rem; margin-bottom: 10px; }
.audiences p { font-size: .85rem; color: var(--muted); }
.principles { margin-top: 30px; }
.principle { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); }
.principle-number { padding-top: 3px; font-size: .7rem; color: var(--muted); }
.principle h3 { font-size: 1.1rem; margin-bottom: 9px; }
.principle p { font-size: .85rem; color: var(--muted); }

/* PROJECT IMAGES AND PRESENTATION PREVIEWS */

.work-figure { margin-top: 26px; }
.work-figure a { display: block; border: 1px solid var(--line); overflow: hidden; background: #ffffff; }
.work-figure img { display: block; width: 100%; height: auto; transition: opacity .2s ease; }
.work-figure a:hover img { opacity: .85; }
.work-figure figcaption { margin-top: 10px; font-size: .75rem; line-height: 1.6; color: var(--muted); }
.figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.figure-pair .work-figure { min-width: 0; }
.figure-pair .work-figure a { aspect-ratio: 16 / 10; display: flex; align-items: center; }
.figure-pair .work-figure img { height: 100%; object-fit: contain; }

/* COPYWRITING AND BROCHURE */

.values { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 25px; }
.values img { width: 52px; height: 52px; object-fit: contain; }
.values span { font-size: .8rem; color: var(--accent); }
.deliverable { margin-top: 34px; }
.deliverable h3 { font-size: 1.2rem; margin-bottom: 12px; }
.deliverable > p { font-size: .85rem; color: var(--muted); }
.deliverable .text-link { margin-top: 14px; }

/* LINKS AND BUTTONS */

.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .85rem; color: #333; transition: color .2s ease; }
.text-link:hover { color: var(--hover); }
.action { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 11px 18px; border: 1px solid #000; background: #000; color: #fff; text-decoration: none; font-size: .8rem; cursor: pointer; transition: background .2s ease; }
.action:hover { background: var(--accent); color: #fff; }
.presentation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }

/* WEBSITE AND PITCH PRESENTATION */

.website-design { max-height: 440px; overflow: hidden; }
.live-site { margin-top: 24px; padding: 2px 0 2px 20px; border-left: 2px solid var(--accent); }
.live-site h3 { font-size: 1.15rem; margin-bottom: 9px; }
.live-site p { font-size: .85rem; color: var(--muted); }
.presentation { margin-top: 32px; padding: 28px; border: 1px solid var(--line); background: #ffffff; }
.presentation h3 { font-size: 1.15rem; margin-bottom: 12px; }
.presentation p { font-size: .85rem; color: var(--muted); }
.deck-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin-top: 22px; background: #fff; }

/* ENLARGED IMAGE VIEWER */

.image-viewer { width: min(1100px, 94vw); max-height: 92vh; margin: auto; padding: 0; border: 0; background: #fff; color: #000; }
.image-viewer::backdrop { background: rgba(0, 0, 0, .85); }
.viewer-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.viewer-header h2 { font-size: 1rem; line-height: 1.5; }
.viewer-close { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; color: #000; cursor: pointer; }
.viewer-image { display: block; width: 100%; height: auto; }
.viewer-original { display: inline-flex; gap: 8px; margin: 15px 20px; font-size: .8rem; }

/* PAGE END AND FOOTER */

.project-outro { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 50px 0 60px; }
.project-outro h2 { font-size: 1.5rem; margin-bottom: 12px; }
footer.container { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

/* TABLET */

@media (max-width: 800px) {
  .container { width: 90%; }
  .chapter { grid-template-columns: 1fr; gap: 24px; padding: 42px 0; }
  .project-overview { grid-template-columns: 1fr; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; border-top: 1px solid var(--line); padding: 25px; }
  .hero { padding: 25px 0 40px; }
  .project-outro { flex-direction: column; align-items: flex-start; gap: 20px; padding: 42px 0; }
}

/* MOBILE */

@media (max-width: 600px) {
  main.container { padding-top: 65px; }
  .hero h1 { font-size: 2rem; }
  .hero .eyebrow { max-width: 280px; margin: 0 auto; }
  .tags { gap: 6px 12px; font-size: .7rem; }
  .tags li:not(:last-child)::after { padding-left: 12px; }
  .page-nav { gap: 0 18px; padding: 16px 0; }
  .details, .methods, .audiences, .figure-pair, .insight { grid-template-columns: 1fr; }
  .figure-pair { gap: 0; }
  .insight { gap: 8px; }
  .values { gap: 8px 14px; }
  .website-design { max-height: 350px; }
  .presentation { padding: 20px; }
  footer.container { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}