/* mistycripps.com — values carried over from the Claude Design mockups */
:root {
  --bg: #F2F3F5;
  --header: #545D71;
  --text: #1F2430;
  --text-2: #545D71;
  --text-3: #3A4253;
  --teal: #015564;
  --teal-dark: #013A44;
  --accent: #01CDCC;
  --accent-on-teal: #07DBD7;
  --teal-soft-text: #BFE3E6;
  --line: #D9DCE2;
  --chip-line: #C3C8D2;
  --tile-bg: #E2E5EA;
  --serif: Fraunces, Georgia, serif;
  --sans: Poppins, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* Placeholder copy, e.g. [RESULT] — visible until replaced */
.ph { background: #FFF3C4; color: #6B5300; padding: 0 3px; border-radius: 2px; }

/* Header */
.site-header { background: var(--header); }
.header-row { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 22px; color: var(--bg); text-decoration: none; }
.brand:hover { color: #fff; }
.primary { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.primary a { color: var(--bg); text-decoration: none; }
.primary a:hover { color: #fff; }
.primary a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.icons { display: flex; align-items: center; gap: 2px; margin-left: 4px; padding-left: 16px; border-left: 1px solid #7A8296; }
.icons a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }

/* Index */
.intro { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.intro h1 { font-size: 46px; line-height: 1.1; letter-spacing: -0.01em; max-width: 760px; }
.intro p { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 640px; }

.filter-row { padding-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-family: var(--sans); font-size: 14px; border: 1px solid var(--chip-line); background: transparent; color: var(--text); }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--bg); }
.count { font-size: 12px; color: var(--text-2); }

.grid-wrap { padding-top: 32px; padding-bottom: 80px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 28px; }
.tile { display: flex; flex-direction: column; gap: 14px; color: var(--text); text-decoration: none; }
.tile[hidden] { display: none; }
a.tile:hover { color: var(--text); }
a.tile:hover .tile-name { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.tile-media { aspect-ratio: 4 / 3; background: var(--tile-bg); border-radius: 2px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.tile-media.has-img { padding: 14px; }
.tile-media.has-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; box-shadow: 0 1px 2px rgba(31, 36, 48, 0.12); }
.tile-note { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: var(--text-2); }
.tile-note .ph { background: none; color: inherit; padding: 0; }
.tile-text { display: flex; flex-direction: column; gap: 6px; }
.tile-name { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.tile-client { font-size: 12px; letter-spacing: 0.03em; color: var(--text-2); text-transform: uppercase; }
.tile-line { font-size: 15px; line-height: 1.45; color: var(--text-3); }

.site-footer { background: var(--teal); color: var(--bg); }
.footer-row { padding-top: 64px; padding-bottom: 64px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-copy { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.footer-copy h2 { font-size: 30px; line-height: 1.2; }
.footer-copy p { font-size: 16px; line-height: 1.55; color: var(--teal-soft-text); }
.outline-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--accent-on-teal); color: var(--accent-on-teal); text-decoration: none; font-size: 13px; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.outline-btn:hover { background: var(--accent-on-teal); color: var(--teal); }

/* Project page */
.proj-head { padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.back { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); text-decoration: none; align-self: flex-start; }
.proj-head h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.01em; max-width: 820px; }
.meta { margin: 0; display: flex; gap: 40px; flex-wrap: wrap; }
.meta div { display: flex; flex-direction: column; gap: 4px; }
.meta dt { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.meta dd { margin: 0; font-size: 15px; }

.hero { margin: 40px 0 0; background: #fff; border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero img { width: auto; height: auto; max-height: 640px; }
.hero figcaption { align-self: flex-start; font-size: 12px; color: var(--text-2); }

.rules { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.rule-item { border-top: 2px solid var(--accent); padding-top: 14px; }
.rule-item p { font-size: 16px; line-height: 1.5; }

.from-work { padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head h2, .deliv-row h2 { font-size: 28px; }
.hint { font-size: 12px; color: var(--text-2); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.pg { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; cursor: zoom-in; }
.pg:hover { color: var(--text); }
.pg-media { aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; padding: 12px; transition: border-color 0.15s; }
.pg:hover .pg-media { border-color: var(--accent); }
.pg-media img { width: 100%; height: 100%; object-fit: contain; }
.pg-num { position: absolute; right: 10px; top: 8px; font-size: 11px; color: var(--text-2); background: rgba(255, 255, 255, 0.9); padding: 0 4px; }
.pg-text { display: flex; flex-direction: column; gap: 2px; }
.pg-title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.pg-label { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }

.deliv-row { padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; }
.deliv-row > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.deliverables { list-style: none; margin: 0; padding: 0; }
.deliverables li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.deliverables .size { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.request { background: var(--teal); color: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.request h2 { font-size: 26px; line-height: 1.2; }
.request p { font-size: 15px; line-height: 1.55; color: var(--teal-soft-text); }
.request .outline-btn { align-self: flex-start; }

.more-work { border-top: 1px solid var(--line); }
.more-row { padding-top: 32px; padding-bottom: 56px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.more-row a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.more-row a.right { text-align: right; margin-left: auto; }
.more-row .k { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.more-row .v { font-family: var(--serif); font-size: 20px; }

/* Pinned case studies (index) */
.pinned { padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.pinned h2 { font-size: 13px; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.pinned-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.pinned-row .tile-name { font-size: 18px; }
.pinned-row .tile-line { font-size: 14px; }
.cs-tag { position: absolute; left: 10px; top: 10px; background: var(--teal); color: var(--accent-on-teal); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }

/* Expanded case study (project page) */
.dek { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--text-3); max-width: 720px; }
.kicker { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.cs-section, .cs-band, .cs-outcome { padding-top: 64px; padding-bottom: 64px; }
.cs-section h2, .cs-band h2, .cs-outcome h2 { font-size: 32px; line-height: 1.2; max-width: 820px; margin: 10px 0 28px; }
.cs-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.cs-text p { font-size: 16px; line-height: 1.6; margin-bottom: 14px; }
.cs-media.sticky { position: sticky; top: 24px; }
.cs-fig { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text-2); cursor: zoom-in; }
.cs-fig img { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }
.cs-fig:hover img { border-color: var(--accent); }
.cs-cap { font-size: 12px; }
.cs-band { background: #1F2A44; color: #E6E9F0; }
.cs-band .kicker { color: var(--accent-on-teal); }
.cs-band h2 { color: #fff; }
.cs-band .cs-fig { color: #B8BCC6; }
.cs-band .cs-fig img { border-color: #33405e; }
.cs-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; border-top: 1px solid #33405e; padding-top: 18px; }
.cs-quote .k { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: #8C93A3; }
.cs-quote p { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.45; margin: 6px 0 0; }
.rejected { list-style: none; margin: 8px 0 0; padding: 0; }
.rejected li { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.rej-k { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: #A3352F; }
.rej-choice { font-family: var(--serif); font-size: 18px; color: var(--text); text-decoration-color: #A3352F; }
.rejected li p { margin: 0; font-size: 15px; line-height: 1.55; }
.comps { display: flex; flex-direction: column; }
.comp { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); align-items: start; }
.comp h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 6px; }
.comp-tags { display: block; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.comp-text p { font-size: 15px; line-height: 1.6; margin: 0; }
.cs-outcome { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.stat .v { font-family: var(--serif); font-size: 44px; color: #1F2A44; }
.stat .l { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); max-width: 200px; }

.cs-list-h { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 36px 0 12px; }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cs-list li { border-top: 2px solid var(--accent); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.cs-list .k { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.cs-list .v { font-family: var(--serif); font-size: 17px; line-height: 1.3; }

@media (max-width: 1000px) {
  .pinned-row { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 800px) {
  .cs-split, .comp { grid-template-columns: 1fr; gap: 24px; }
  .cs-media.sticky { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cs-quotes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pinned-row { grid-template-columns: 1fr; }
  .cs-section h2, .cs-band h2, .cs-outcome h2 { font-size: 25px; }
  .dek { font-size: 18px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15, 16, 19, 0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px; z-index: 10; }
.lightbox[hidden] { display: none; }
.lb-frame { width: min(1100px, 100%); flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-frame img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.lb-bar { width: min(1100px, 100%); display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--bg); flex-wrap: wrap; }
.lb-caption { display: flex; flex-direction: column; gap: 2px; }
.lb-title { font-size: 16px; }
.lb-sub { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #B8BCC6; }
.lb-btns { display: flex; gap: 8px; }
.lb-btns button { min-height: 44px; padding: 0 16px; background: transparent; color: var(--bg); border: 1px solid #6B7080; cursor: pointer; font-family: var(--sans); font-size: 12px; }
.lb-btns button:hover { border-color: var(--bg); }
.lb-btns button.solid { background: var(--bg); color: var(--text); border-color: var(--bg); }
body.lb-open { overflow: hidden; }

/* Phone width */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-row { padding-top: 18px; padding-bottom: 18px; gap: 8px; }
  .primary { gap: 16px; font-size: 12px; }
  .icons { padding-left: 8px; margin-left: 0; }
  .intro { padding-top: 32px; padding-bottom: 28px; }
  .intro h1 { font-size: 34px; }
  .intro p { font-size: 16px; }
  .chip { font-size: 13px; padding: 0 12px; }
  .tile-grid, .pg-grid { grid-template-columns: 1fr; gap: 36px; }
  .proj-head h1 { font-size: 32px; }
  .meta { gap: 16px 28px; }
  .hero { padding: 10px; margin-top: 28px; }
  .rules { padding-top: 36px; padding-bottom: 40px; gap: 24px; }
  .deliv-row { grid-template-columns: 1fr; gap: 36px; }
  .request { padding: 24px; }
  .footer-row { padding-top: 44px; padding-bottom: 44px; }
  .footer-copy h2 { font-size: 24px; }
  .lightbox { padding: 12px; }
  .lb-btns { width: 100%; }
  .lb-btns button { flex: 1; }
}

/* Decision-moment section: numbered callouts keyed to the annotated screenshot */
.callouts { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.callouts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.callouts .co-n { width: 26px; height: 26px; border-radius: 50%; background: #015564; color: #F2F3F5; font: 500 13px/26px Poppins, sans-serif; text-align: center; }
.callouts p { margin: 2px 0 0; }
.stats-light .stat .v { color: #015564; }
.cs-decision .cs-coda { max-width: 720px; margin-top: 24px; }

/* About page */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; padding-top: 64px; padding-bottom: 80px; }
.about-photo { margin: 0; position: sticky; top: 24px; }
.about-photo img { width: 100%; height: auto; display: block; border-radius: 2px; }
.about-text h1 { margin: 0 0 24px; font-size: 46px; line-height: 1.1; }
.about-text p { font-size: 17px; line-height: 1.7; margin: 0 0 20px; max-width: 640px; }
.about-contact { padding-top: 16px; border-top: 2px solid #01CDCC; color: var(--text-2); }
.about-contact a { color: #015564; }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .about-photo { position: static; max-width: 420px; }
}

/* Writing index */
.writing-list { padding-bottom: 80px; }
.w-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.w-list li { border-bottom: 1px solid var(--line); }
.w-row { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 28px 0; color: inherit; text-decoration: none; align-items: start; }
.w-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.w-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-text { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.w-date { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.w-title { font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.w-excerpt { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.w-row:hover .w-title { color: #015564; }
.w-row:not(:has(.w-thumb)) { grid-template-columns: 1fr; }
/* Article: title, image, text in one stack */
.article { max-width: 760px; margin: 0 auto; padding: 56px 40px 80px; }
.art-head .back { display: inline-block; margin-bottom: 24px; }
.art-head h1 { font-size: 44px; line-height: 1.12; letter-spacing: -0.01em; }
.art-date { margin: 14px 0 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.art-image { margin: 36px 0; }
.art-image img { width: 100%; height: auto; display: block; }
.art-body { font-size: 18px; line-height: 1.75; }
.art-body p { margin: 0 0 22px; }
.art-body h2 { font-size: 28px; line-height: 1.25; margin: 44px 0 16px; }
.art-body h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 32px 0 12px; }
.art-body blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid #01CDCC; color: var(--text-2); }
.art-body ul, .art-body ol { margin: 0 0 22px; padding-left: 22px; }
.art-body a { color: #015564; }
@media (max-width: 800px) {
  .w-row { grid-template-columns: 1fr; gap: 16px; }
  .article { padding: 36px 16px 56px; }
  .art-head h1 { font-size: 34px; }
}
.art-body code { font-size: 0.88em; background: #fff; border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; }
.art-figure { margin: 32px 0; }
.art-figure img { width: 100%; height: auto; display: block; }
.art-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--text-2); }
