/* ===========================================================
   LoHeartStudio — shared page styles for detail pages
   (works/*.html, pricing.html)
   Matches the design language of index-structure.html:
   cream bg / Inter 900 huge type / per-page accent / section-overline
   =========================================================== */

:root {
  --bg: #fafaf8;
  --bg-alt: #ebe6dd;
  --text: #1a1a1a;
  --muted: #807e7b;
  --rule: rgba(26, 24, 20, 0.18);
  --accent: #1a1a1a;
  --strip-h: 48px;
  --pad-x: 24px;
  --ease-1: cubic-bezier(0.165, 0.84, 0.44, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--text); color: var(--bg); }
img { display: block; max-width: 100%; }

/* TOPSTRIP — identical mechanic to home */
.topstrip {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--strip-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad-x);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.topstrip .brand { font-weight: 700; }
.topstrip nav { display: flex; gap: 24px; }
.topstrip nav a:hover { color: var(--accent); }
.topstrip .util { justify-self: end; display: flex; gap: 18px; align-items: center; }
.topstrip .bag {
  border: 1px solid var(--text);
  padding: 4px 10px;
  transition: background 0.2s, color 0.2s;
}
.topstrip .bag:hover { background: var(--text); color: var(--bg); }

/* SECTION OVERLINE */
.section-overline {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================================================
   PAGE HEADER — overline + huge title + tags
   =========================================================== */
.page-header {
  padding: calc(var(--strip-h) + clamp(80px, 14vh, 180px)) clamp(32px, 6vw, 96px) clamp(48px, 8vh, 96px);
  max-width: 1320px;
  margin: 0 auto;
}
.page-header__breadcrumb {
  display: flex;
  gap: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(48px, 8vh, 96px);
}
.page-header__breadcrumb a { color: var(--muted); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.page-header__breadcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.page-header__breadcrumb .sep { color: var(--rule); }

.page-header__overline { margin: 0; }
.page-header__title {
  margin: 16px 0 24px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--text);
}
.page-header__title .accent { color: var(--accent); }
.page-header__title em { font-style: normal; color: inherit; }
.page-header__lede {
  margin: 24px 0 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--text);
}
.page-header__lede em { font-style: normal; font-weight: 700; color: inherit; }
.page-header__tags {
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-header__tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================================================
   HERO PHOTO — full-bleed, atmospheric
   =========================================================== */
.page-hero-photo {
  width: 100%;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg) 90%);
  padding: clamp(32px, 5vw, 80px) clamp(32px, 6vw, 96px);
}
.page-hero-photo__inner {
  max-width: 1320px;
  margin: 0 auto;
}
.page-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1a1a1a;
}

/* ===========================================================
   META TABLE — Year / Role / Stack / Live URL
   =========================================================== */
.meta-table {
  padding: clamp(80px, 12vh, 160px) clamp(32px, 6vw, 96px);
  max-width: 1320px;
  margin: 0 auto;
}
.meta-table__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.meta-cell {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.meta-cell__key {
  margin: 0 0 8px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-cell__val {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 17px);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.4;
}
.meta-cell__val a { border-bottom: 1px solid var(--rule); transition: border-color 0.2s, color 0.2s; }
.meta-cell__val a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ===========================================================
   PROSE — long description block
   =========================================================== */
.prose-block {
  padding: clamp(64px, 10vh, 140px) clamp(32px, 6vw, 96px);
  max-width: 1320px;
  margin: 0 auto;
}
.prose-block__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.prose-block__overline { padding-top: 6px; }
.prose-block__heading {
  margin: 0 0 32px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
}
.prose-block__heading em { font-style: normal; color: var(--accent); }
.prose-block__body p {
  margin: 0 0 1.4em;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.85;
  color: var(--text);
  max-width: 64ch;
}
.prose-block__body em { font-style: normal; font-weight: 700; }

/* ===========================================================
   GALLERY — staggered image stack
   =========================================================== */
.gallery {
  padding: clamp(64px, 10vh, 140px) clamp(32px, 6vw, 96px);
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 80px);
}
.gallery__item {
  width: 100%;
}
.gallery__item img {
  width: 100%;
  height: auto;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg) 90%);
}
.gallery__item--inset { padding: 0 clamp(0px, 8vw, 120px); }
.gallery__item--right { padding: 0 0 0 clamp(0px, 16vw, 240px); }
.gallery__caption {
  margin: 16px 0 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================================================
   FOOTER NAV — back to all works + next case
   =========================================================== */
.page-nav {
  padding: clamp(80px, 14vh, 180px) clamp(32px, 6vw, 96px);
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.page-nav__back {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-nav__back a { color: var(--muted); transition: color 0.2s; }
.page-nav__back a:hover { color: var(--accent); }
.page-nav__next {
  justify-self: end;
  text-align: right;
}
.page-nav__next-label {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.page-nav__next-title {
  display: block;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  transition: color 0.2s;
}
.page-nav__next:hover .page-nav__next-title { color: var(--accent); }

/* ===========================================================
   CTA STRIP — slim dark band
   =========================================================== */
.cta-strip {
  background: #1a1a1a;
  color: #fafaf8;
  padding: clamp(80px, 14vh, 160px) clamp(32px, 6vw, 96px);
}
.cta-strip__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(48px, 8vw, 128px);
}
.cta-strip__overline { color: #807e7b; grid-column: 1 / -1; }
.cta-strip__heading {
  grid-column: 1;
  margin: 16px 0 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: #fafaf8;
}
.cta-strip__heading em { font-style: normal; color: inherit; }
.cta-strip__side {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 8px;
}
.cta-strip__price {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #807e7b;
}
.cta-strip__price strong {
  color: #fafaf8;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.cta-strip__actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.cta-strip__primary, .cta-strip__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cta-strip__primary { background: #fafaf8; color: #1a1a1a; border: 1px solid #fafaf8; }
.cta-strip__primary:hover { background: transparent; color: #fafaf8; }
.cta-strip__secondary { background: transparent; color: #fafaf8; border: 1px solid rgba(250,250,248,0.4); }
.cta-strip__secondary:hover { border-color: #fafaf8; }

/* FOOTER */
footer.site-footer {
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: #fafaf8;
}
footer.site-footer h4 { margin: 0 0 12px; font-size: 10px; font-weight: 400; letter-spacing: 0.1em; color: var(--muted); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li + li { margin-top: 4px; }
footer.site-footer a:hover { color: var(--accent); }

/* ===========================================================
   PRICING TIERS
   =========================================================== */
.pricing-grid {
  padding: clamp(64px, 10vh, 140px) clamp(32px, 6vw, 96px);
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}
.tier {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 24px;
  padding: clamp(32px, 4vw, 56px) clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--rule);
  background: var(--bg);
  position: relative;
}
.tier--featured {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg) 90%);
  border-color: var(--accent);
}
.tier__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fafaf8;
  padding: 5px 12px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
}
.tier__overline {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier__name {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
}
.tier__price {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--text);
}
.tier__price small {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-left: 8px;
}
.tier__lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.tier__list { list-style: none; margin: 0; padding: 0; }
.tier__list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.tier__list li::before {
  content: "+";
  position: absolute;
  left: 0; top: 12px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}
.tier__list li:last-child { border-bottom: 1px solid var(--rule); }
.tier__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--accent);
  color: #fafaf8;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.tier__cta:hover { opacity: 0.85; }
.tier--ghost .tier__cta { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* PRICING NOTES */
.pricing-notes {
  padding: clamp(48px, 8vh, 120px) clamp(32px, 6vw, 96px) clamp(96px, 14vh, 200px);
  max-width: 1320px;
  margin: 0 auto;
}
.pricing-notes__heading {
  margin: 0 0 32px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--text);
}
.pricing-notes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.pricing-notes__list li {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.pricing-notes__list li strong {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

/* ===========================================================
   MOBILE MENU — hamburger overlay (≤720px)
   =========================================================== */
.topstrip-menu-btn {
  display: none;
  background: none;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.topstrip-menu-btn:hover { background: var(--text); color: var(--bg); }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  padding: var(--strip-h) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--strip-h);
  margin-top: calc(var(--strip-h) * -1);
}
.mobile-menu__brand {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mobile-menu__close {
  background: none;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.mobile-menu__close:hover { background: var(--text); color: var(--bg); }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vh, 32px);
  margin-top: clamp(40px, 8vh, 96px);
}
.mobile-menu__nav a {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 10vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu__nav a:hover { color: var(--accent); }
.mobile-menu__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-menu__foot a { color: var(--text); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 720px) {
  .topstrip { grid-template-columns: 1fr auto; }
  .topstrip nav { display: none; }
  .topstrip .util { display: none; }
  .topstrip-menu-btn { display: inline-flex; align-items: center; justify-self: end; }

  .page-header {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: calc(var(--strip-h) + 64px);
    padding-bottom: 48px;
  }
  .page-header__breadcrumb { margin-bottom: 32px; flex-wrap: wrap; gap: 8px; font-size: 10px; }
  .page-header__title { font-size: clamp(2.4rem, 13vw, 5rem); }
  .page-header__lede { font-size: 14px; line-height: 1.7; }
  .page-header__tags { gap: 6px; }
  .page-header__tag { font-size: 9px; padding: 5px 10px; }

  .page-hero-photo { padding: 24px 20px; }
  .page-hero-photo img { aspect-ratio: 4/3; }

  .meta-table { padding: 64px 20px; }
  .meta-table__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .meta-cell__val { font-size: 14px; }

  .prose-block { padding: 48px 20px; }
  .prose-block__inner { grid-template-columns: 1fr; gap: 24px; }
  .prose-block__heading { font-size: clamp(1.6rem, 9vw, 2.4rem); }
  .prose-block__body p { font-size: 15px; line-height: 1.8; }

  .gallery { padding: 48px 20px; gap: 32px; }
  .gallery__item--inset, .gallery__item--right { padding: 0; }

  .page-nav { padding: 64px 20px; grid-template-columns: 1fr; gap: 24px; }
  .page-nav__next { justify-self: start; text-align: left; }
  .page-nav__next-title { font-size: clamp(1.4rem, 7vw, 2rem); }

  .cta-strip { padding: 80px 20px; }
  .cta-strip__inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-strip__heading, .cta-strip__side { grid-column: 1; }
  .cta-strip__heading { font-size: clamp(2rem, 11vw, 3.4rem); }
  .cta-strip__actions { max-width: none; }

  .pricing-grid { padding: 48px 20px; grid-template-columns: 1fr; gap: 16px; }
  .tier { padding: 32px 24px; }
  .tier__name { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .tier__list li { font-size: 14px; }

  .pricing-notes { padding: 48px 20px 96px; }
  .pricing-notes__heading { font-size: clamp(1.4rem, 7vw, 2rem); }
  .pricing-notes__list { grid-template-columns: 1fr; gap: 0; }

  footer.site-footer { padding: 32px 20px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .page-header__title { font-size: clamp(2rem, 12vw, 3rem); }
  .meta-table__grid { grid-template-columns: 1fr; }
  .prose-block__heading { font-size: clamp(1.4rem, 8vw, 2rem); }
  .cta-strip__heading { font-size: clamp(1.7rem, 10vw, 2.6rem); }
  footer.site-footer { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
