:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211b;
  background: #f3f5f2;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }

header {
  height: 64px;
  padding: 0 34px;
  border-bottom: 1px solid #dce2dd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand b {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

header button,
header > a {
  border: 0;
  background: transparent;
  color: #69736d;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.logo-pill {
  width: 56px;
  height: 34px;
  border: 1px solid #e1e7e3;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px #17211b0d;
  flex: 0 0 auto;
}
.logo-pill img { display: block; width: 27px; height: 24px; }
a.logo-pill:hover { border-color: #9db2a7; }
a.logo-pill:focus-visible { outline: 2px solid #25523f33; outline-offset: 2px; }

.landing-main {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

body > main:not(.landing-main):not(.viewer-main) {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}
body > main:not(.landing-main):not(.viewer-main) h1 {
  margin: 0;
  font: 500 clamp(40px, 7vw, 68px) Georgia;
}

.app-title {
  margin: 0 0 42px;
  font: 500 clamp(36px, 5vw, 58px) Georgia;
  line-height: 1.03;
}
.app-title > span { display: block; }
.app-title { margin-bottom: 18px; }
.linkedin-row { display: flex; align-items: center; margin: 0 0 30px; }
.linkedin-brand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  line-height: 0;
  transition: transform .14s ease, box-shadow .14s ease;
}
.linkedin-brand-button img { display: block; width: 46px; height: auto; }
.linkedin-brand-button:hover { transform: translateY(-1px); box-shadow: 0 5px 13px #0a66c226; }
.linkedin-brand-button:focus-visible { outline: 3px solid #0a66c233; outline-offset: 3px; }

.landing-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.landing-card {
  min-height: 245px;
  padding: 25px;
  border: 1px solid #dce2dd;
  border-radius: 7px;
  background: #fff;
  color: #17211b;
  text-decoration: none;
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.landing-card h2 { margin: 0; font: 500 29px Georgia; }
.modeler-card { display: grid; grid-template-rows: 1fr auto; }
.modeler-card h2 { align-self: center; }
.modeler-card > i,
.document-links i {
  color: #25523f;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.modeler-card > i { justify-self: end; }
.modeler-card:hover,
.modeler-card:focus {
  border-color: #8ca99a;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px #17211b10;
  outline: none;
}

.case-study-card { display: grid; grid-template-rows: auto 1fr; gap: 22px; }
.case-study-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.case-study-heading h2 { min-width: 0; }
.easter-egg-trigger {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #87928c;
  opacity: .5;
  cursor: pointer;
  transition: opacity .14s ease, color .14s ease, background .14s ease, transform .14s ease;
}
.easter-egg-trigger svg { width: 16px; height: 16px; overflow: visible; }
.easter-egg-trigger path { fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.case-study-heading:hover .easter-egg-trigger,
.easter-egg-trigger:hover,
.easter-egg-trigger:focus-visible { opacity: 1; color: #25523f; background: #edf5f1; }
.easter-egg-trigger:hover { transform: translateY(-1px); }
.easter-egg-trigger:focus-visible { outline: 2px solid #25523f55; outline-offset: 2px; }
.response-card h2 { max-width: 260px; }
.document-links { display: grid; align-content: stretch; border-top: 1px solid #e4e9e6; }
.document-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 2px;
  border-bottom: 1px solid #e4e9e6;
  color: #17211b;
  text-decoration: none;
}
.document-links span { font: 500 17px Georgia; }
.document-links a:hover span,
.document-links a:focus span { color: #25523f; }
.document-links a:focus { outline: none; box-shadow: inset 3px 0 #98c5b4; padding-left: 10px; }

body.easter-egg-open { overflow: hidden; }
.easter-egg-modal[hidden] { display: none; }
.easter-egg-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #101713c7;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: easter-egg-fade .16s ease-out;
}
.easter-egg-dialog {
  position: relative;
  max-width: min(620px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  margin: 0;
  padding: 8px;
  border: 1px solid #dce2dd;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 24px 70px #0007;
  animation: easter-egg-rise .18s ease-out;
}
.easter-egg-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 74px);
  border-radius: 5px;
  object-fit: contain;
}
.easter-egg-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid #d4dcd7;
  border-radius: 999px;
  background: #fffffff2;
  box-shadow: 0 3px 12px #17211b2b;
  color: #25523f;
  font: 400 23px/1 Georgia;
  cursor: pointer;
}
.easter-egg-close:hover { background: #edf5f1; }
.easter-egg-close:focus-visible { outline: 3px solid #98c5b480; outline-offset: 2px; }
@keyframes easter-egg-fade { from { opacity: 0; } }
@keyframes easter-egg-rise { from { opacity: 0; transform: translateY(8px) scale(.99); } }

.viewer-page { height: 100vh; overflow: hidden; }
.viewer-actions { display: flex; align-items: center; }
.viewer-actions a {
  border: 1px solid #25523f;
  border-radius: 4px;
  padding: 8px 11px;
  background: #25523f;
  color: #fff;
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
}
.viewer-main {
  width: 100%;
  height: calc(100vh - 64px);
  padding: 15px 24px 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}
.viewer-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-title h1 { margin: 0; font: 500 25px Georgia; }
.viewer-title span {
  color: #69736d;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pdf-frame {
  min-height: 0;
  border: 1px solid #dce2dd;
  border-radius: 7px;
  background: #e6eae7;
  overflow: hidden;
  box-shadow: 0 8px 24px #17211b0d;
}
.pdf-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

.responses-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 96px;
}
.responses-main > h1 {
  margin: 0 0 48px;
  font: 500 clamp(38px, 6vw, 62px) Georgia;
  line-height: 1.04;
}
.response-section {
  scroll-margin-top: 24px;
  padding: 42px 0 54px;
  border-top: 1px solid #cfd8d2;
}
.response-section:first-of-type { padding-top: 0; border-top: 0; }
.response-kicker {
  display: block;
  margin-bottom: 10px;
  color: #25523f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.response-section h2 {
  max-width: 850px;
  margin: 0 0 28px;
  font: 500 clamp(26px, 4vw, 38px) Georgia;
  line-height: 1.15;
}
.response-copy {
  max-width: 780px;
  color: #2e3933;
  font: 400 17px/1.72 Georgia;
}
.response-copy p { margin: 0 0 20px; }
.response-copy p:last-child { margin-bottom: 0; }

@media (min-width: 761px) {
  .landing-card h2 {
    font-size: clamp(23px, 2vw, 27px);
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .landing-panels { grid-template-columns: 1fr; }
  .landing-card { min-height: 210px; }
}

@media (max-width: 650px) {
  header { padding: 0 20px; }
  .brand b { font-size: 8px; letter-spacing: .04em; }
  .landing-main { padding: 66px 0; }
  .app-title { margin-bottom: 16px; }
  .linkedin-row { margin-bottom: 24px; }
  .linkedin-brand-button img { width: 42px; }
  .viewer-page .brand b { display: none; }
  .viewer-main { padding: 10px 10px 14px; }
  .viewer-title h1 { font-size: 19px; }
  .responses-main { padding: 48px 0 72px; }
  .responses-main > h1 { margin-bottom: 36px; }
  .response-copy { font-size: 16px; line-height: 1.65; }
  .easter-egg-modal { padding: 14px; }
  .easter-egg-dialog { max-width: calc(100vw - 28px); max-height: calc(100vh - 28px); padding: 6px; }
  .easter-egg-dialog img { max-height: calc(100vh - 40px); }
  .easter-egg-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .easter-egg-trigger,
  .easter-egg-modal,
  .easter-egg-dialog { animation: none; transition: none; }
}
