/* offering.css — the Offerings register: 1:1 Mentorship, Energy Portraits.
   Composition:
     SHELL:  SH-2RAIL-L — global rail, no local rail
     BODY:   MK-CAPS page marker → centred head → sections, each a centred
             heading over prose in a reading measure, with image spreads,
             pairs and a studio strip between them → testimonials.

   After antheaxin.com's own offering pages: one centred column, the artist's
   glyphs (♢ ✧ 𓇽 𓆸) as the only ornament between sections, images at their own
   ratios. Calls to action are text links with an arrow, never filled buttons. */

.offering { max-width: 100%; }
.marker--page { margin-bottom: var(--u2); }

/* Reading measure for prose, centred in the field. */
.off-col { max-width: var(--gallery-measure); margin-inline: auto; }   /* = the gallery statement width (client) */

/* ── Head ─────────────────────────────────────────────────────────────── */
.off-head {
  text-align: center;
  padding: var(--u4) 0 calc(var(--u4) * 1.5);
}
.off-title {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.off-title .alt {
  display: block;
  margin-top: var(--u1);
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  text-align: inherit;
}
.off-kicker {
  margin-top: var(--u2);
  font-family: var(--f-head);
  font-style: italic;
  font-size: calc(var(--t-meta) * 1.25);
  color: var(--ink-soft);
}
.off-lede {
  margin-top: var(--u2);
  font-size: var(--t-thesis);
  line-height: var(--lh-thesis);
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.off-section { margin-top: calc(var(--u4) * 2); }
.off-section > h2,
.off-h2 {
  margin-bottom: var(--u2);
  text-align: center;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.off-prose p {
  font-size: var(--t-meta);
  line-height: 1.75;
}
.off-prose p + p { margin-top: var(--u1); }
.off-prose em { font-style: italic; }
.off-verse p { text-align: justify; text-justify: inter-word; text-align-last: auto; hyphens: manual; }   /* justified like the gallery statements (client) */

/* The artist's glyph between sections — the page's only ornament. */
/* The hieroglyph glyphs (𓇽 𓆸 𓂀 𓇳 𓋊) are in no system face: a five-character
   subset of Noto Sans Egyptian Hieroglyphs is linked on these pages. */
.off-orn {
  font-family: "Noto Sans Egyptian Hieroglyphs", var(--f-sans);
  margin: calc(var(--u4) * 1.5) 0 0;
  text-align: center;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft);
}

/* Lists marked with the artist's glyph rather than a bullet. */
.off-list { display: grid; gap: var(--u1); }
.off-list li {
  position: relative;
  padding-left: 1.8em;
  font-size: var(--t-meta);
  line-height: 1.75;
}
.off-list li::before {
  content: "✧";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
}

/* ── Images ───────────────────────────────────────────────────────────── */
.off-section img,
.off-head img { width: 100%; }

/* One image centred, held to the screen if it is tall (C27). */
.off-figure { max-width: 720px; margin-inline: auto; }
.off-figure img { width: auto; max-width: 100%; max-height: 90vh; margin-inline: auto; }
.off-figure figcaption,
.off-spread figcaption,
.off-pair figcaption,
.off-strip figcaption {
  margin-top: var(--u-half);
  font-size: var(--t-caption);
  color: var(--ink-soft);
}

/* Spread: an image beside its text, bottoms free. Alternates via --flip. */
.off-spread {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--u2) calc(var(--u2) * 1.5);
  align-items: center;
}
.off-spread > figure { grid-column: 1 / span 5; }
.off-spread > .off-spread__text { grid-column: 6 / span 7; }
.off-spread--flip > figure { grid-column: 8 / span 5; grid-row: 1; }
.off-spread--flip > .off-spread__text { grid-column: 1 / span 7; grid-row: 1; }
.off-spread img { max-height: 90vh; object-fit: contain; }

/* Pair and studio strip: equal columns, images at their own ratio. */
.off-pair,
.off-strip {
  display: grid;
  gap: var(--u2);
  align-items: start;
}
.off-pair  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.off-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Offer and calls ──────────────────────────────────────────────────── */
/* What is offered, as data: term on the left, what it is on the right. */
.off-terms {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  border-top: var(--hair) solid var(--rule);
}
.off-terms dt,
.off-terms dd {
  margin: 0;
  padding: var(--u1) 0;
  border-bottom: var(--hair) solid var(--rule);
  font-size: var(--t-meta);
  line-height: 1.6;
}
.off-terms dt {
  text-transform: uppercase;
  letter-spacing: var(--track);
  font-size: var(--t-caption);
  padding-right: var(--u2);
}

/* A call to action is a sentence with an arrow — never a filled button. */
.off-cta {
  margin-top: var(--u2);
  text-align: center;
  font-family: var(--f-head);
  font-style: italic;
  font-size: calc(var(--t-meta) * 1.2);
}
.off-cta a {
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.off-cta a:hover { text-decoration-thickness: 2px; }

/* ── Testimonials ─────────────────────────────────────────────────────── */
.off-quotes { display: grid; gap: calc(var(--u4) * .8); }
.off-quotes blockquote { margin: 0; }
.off-quotes blockquote p {
  font-size: var(--t-meta);
  line-height: 1.75;
}
.off-quotes blockquote p + p { margin-top: var(--u1); }
.off-quotes figcaption {
  margin-top: var(--u1);
  font-size: var(--t-caption);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-soft);
}
.off-quotes figcaption :lang(zh) { text-transform: none; }

/* ── Long-form essays (Research Journal) ──────────────────────────────── */
/* An essay alternates text and images often: one unit of rhythm between them,
   not two, and section headings at a reading size. */
.journal .off-section { margin-top: var(--u4); }
.journal .off-section > h2 {
  margin-top: var(--u2);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.3;
}
.journal .off-figure--wide { max-width: none; }
.marker--page a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ── Small adjustments ────────────────────────────────────────────────── */
.off-mt1 { margin-top: var(--u1); }
.off-mt2 { margin-top: var(--u2); }
.off-mt4 { margin-top: var(--u4); }
.off-h2--left { text-align: left; }
.off-orn--tight { margin-top: var(--u1); }
.off-orn--left { text-align: left; }
.off-cta--left { text-align: left; }
/* A landscape image takes the full column, flush (C27). */
.off-figure--wide { max-width: none; }
.off-figure--wide img { width: 100%; max-height: none; }

/* ── Collapse ─────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .off-spread,
  .off-spread--flip { grid-template-columns: minmax(0, 1fr); }
  .off-spread > figure,
  .off-spread > .off-spread__text,
  .off-spread--flip > figure,
  .off-spread--flip > .off-spread__text { grid-column: 1; grid-row: auto; }
  .off-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .off-terms { grid-template-columns: minmax(0, 1fr); }
  .off-terms dt { border-bottom: 0; padding-bottom: 0; }
  .off-section { margin-top: calc(var(--u4) * 1.4); }
}
@media (max-width: 520px) {
  .off-pair,
  .off-strip { grid-template-columns: minmax(0, 1fr); }
}


/* ── Energy Portraits ──────────────────────────────────────────────────────
   Narrower prose on this page, so the long devotional text sits as a calm
   column in the field rather than spanning it (client). */
.energy .off-col { max-width: var(--gallery-measure); }   /* as the galleries (client, superseding the 62ch) */

/* The veil, after antheaxin.com/soul-portraits: a section set on one of the
   artist's soul portraits washed out to a faint ground — the painting at 14%
   over the page colour (pale in the light theme, a dim glow in the dark one),
   the text centred over it. Opacity only: the image is not filtered. */
.off-veil {
  position: relative;
  isolation: isolate;
  max-width: min(100%, 880px);   /* its own width, not the gallery measure (client) */
  margin-inline: auto;
  padding: calc(var(--u4) * 1.6) calc(var(--u4) * 1.2);
}
.off-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--veil-img, none) center / cover no-repeat;
  opacity: .14;
}
.off-veil__inner { max-width: 60ch; margin-inline: auto; }
.off-veil__inner .off-h2 { text-align: center; }
p.off-verse { text-align: justify; text-justify: inter-word; text-align-last: auto; hyphens: manual; }
.off-veil__inner .off-orn { margin-top: var(--u2); }

@media (max-width: 800px) {
  .off-veil { padding: var(--u4) var(--u2); }
}


/* ═══ 1:1 Mentorship — after antheaxin.com/mentorship ═══════════════════
   A run of full-width bands, each edge to edge across the column (through the
   field's side padding): light → black → grey (testimonials) → light → the sea
   photograph (about) → black (rate). "Black" bands are the inverse of the
   page — black with light text in the light theme, pale with dark text in the
   dark one — so the alternation holds in both. Headings Jost; body small,
   justified inter-word with the last line at the start, as in the galleries. The arch and oval crops of the live page are kept here (the one
   place images are shaped — client: "look like the live page"); outlined,
   never filled, buttons. */
.mentor { --bleed: var(--u2); }
@media (max-width: 520px) { .mentor { --bleed: var(--u1); } }

.mband {
  margin-inline: calc(var(--bleed) * -1);
  padding: calc(var(--u4) * 1.8) var(--u2);
  text-align: center;
}
.mband--light { background: var(--paper); color: var(--ink); }
.mband--black { background: var(--ink); color: var(--paper); }
.mband--grey  { background: color-mix(in srgb, var(--ink) 9%, var(--paper)); color: var(--ink); }

.mcol { max-width: 64ch; margin-inline: auto; }

.mtitle {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: .03em;
}
.mtitle .alt {
  display: block;
  margin-top: var(--u-half);
  font-family: var(--f-sans);
  font-size: var(--t-caption);
  color: var(--ink-soft);
}
.msub {
  margin-top: var(--u1);
  font-family: var(--f-head);
  font-style: italic;
  font-size: var(--t-caption);
  color: var(--ink-soft);
}

.mh2 {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
}
.mh2--italic { font-style: italic; margin-top: var(--u2); }
.mh2--large  { font-size: clamp(24px, 2.4vw, 32px); }
.mh2--offer  { font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; margin-top: var(--u2); }
.mh3 {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: var(--t-meta);
  margin-bottom: var(--u1);
}
.msmall {
  margin-top: var(--u-half);
  font-family: var(--f-head);
  font-style: italic;
  font-size: var(--t-caption);
  opacity: .78;
}
.morn {
  margin: var(--u2) 0;
  font-size: 18px;
  opacity: .7;
}
.morn--glyph { font-family: "Noto Sans Egyptian Hieroglyphs", var(--f-sans); font-size: 22px; }

/* Prose: a centred block — justified, last line centred. */
.mprose { margin-top: var(--u2); }
.field .mprose p,
.field .mlines p {
  text-align: justify;
  text-align-last: auto;   /* last line at the start, as in the galleries (client) */
  text-justify: inter-word;
  font-size: var(--t-caption);
  line-height: 1.75;
}
.mprose p + p { margin-top: var(--u1); }
.mlines { margin-top: var(--u2); }
.mlines p + p { margin-top: var(--u-half); }
.mlines strong, .mprose strong { font-weight: 700; }

/* Image shapes, as on the live page. */
.march, .moval, .mround, .mwide { margin: var(--u4) auto; }
.march img {
  width: min(360px, 72%);
  height: auto;
  margin-inline: auto;
  border-radius: 999px 999px 0 0;     /* the arch */
}
.moval img {
  width: min(300px, 64%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-inline: auto;
  border-radius: 50%;                  /* the oval */
}
.mround img {
  width: min(240px, 60%);
  margin-inline: auto;
  border-radius: 50%;
}
.mwide img { width: min(560px, 100%); margin-inline: auto; }

.mterms { margin-top: var(--u2); }
.mterms dt {
  margin-top: var(--u1);
  font-size: var(--t-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track);
}
.mterms dd { margin: 2px 0 0; font-size: var(--t-caption); }

/* Outlined buttons, never filled. */
.mbtn-row { margin-top: var(--u4); }
.mbtn {
  display: inline-block;
  padding: .95em 2.2em;
  border: var(--hair) solid currentColor;
  font-size: var(--t-caption);
  letter-spacing: .02em;
  transition: background var(--fade) ease;
}
.mbtn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* Testimonials: one card at a time between two buttons (slides.js). */
.mslides {
  display: grid;
  grid-template-columns: auto minmax(0, calc(var(--gallery-measure) + var(--u2) * 3)) auto;
  justify-content: center;
  align-items: center;
  gap: var(--u2);
}
.mcard {
  grid-column: 2;
  padding: var(--u4) calc(var(--u2) * 1.5);
  background: var(--paper);
  color: var(--ink);
}
.mslide { margin: var(--u2) 0 0; }
.mslide + .mslide { margin-top: var(--u4); }          /* no JS: all stacked */
.is-sliding .mslide + .mslide { margin-top: var(--u2); }
.mslide blockquote { margin: 0; }
.field .mslide blockquote p {
  text-align: justify;
  text-align-last: auto;   /* last line at the start, as in the galleries (client) */
  font-size: var(--t-caption);
  line-height: 1.75;
  color: var(--ink-soft);
}
.mslide blockquote p + p { margin-top: var(--u1); }
.mslide figcaption {
  margin-top: var(--u1);
  font-size: var(--t-caption);
  color: var(--ink-soft);
}
.mslide figcaption::before { content: "– "; }
.mslides__btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--hair) solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}
.mslides__btn:hover { border-color: currentColor; }
.mslides__btn--prev { grid-column: 1; grid-row: 1; }
.mslides__btn--next { grid-column: 3; grid-row: 1; }

/* The sea photograph band: the image as the ground, a dark scrim, the line
   across the top, and the outlined About box at the left. */
.mband--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #F5F5F5;
  text-align: left;
}
.mband__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% 50%;
}
.mband--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 9, 12, .42);
}
.mphoto__line {
  max-width: 60ch;
  margin: 0 auto var(--u4);
  text-align: justify; text-justify: inter-word; text-align-last: auto; hyphens: manual;
  font-family: var(--f-head);
  font-size: clamp(17px, 1.5vw, 21px);
}
.mabout {
  width: min(480px, 100%);
  padding: var(--u2) calc(var(--u2) * 1.2);
  border: var(--hair) solid rgba(245, 245, 245, .65);
  background: rgba(10, 9, 12, .25);
}
.mabout .mh2 { text-align: left; }
.field .mabout .mprose p { text-align-last: left; color: rgba(245, 245, 245, .92); }
.mabout--certs { margin-top: var(--u1); }
.mabout--certs ul { display: grid; gap: var(--u-half); font-size: var(--t-caption); }

/* Rate. */
.msymbol { width: 72px; height: auto; margin: var(--u4) auto var(--u1); }
:root[data-theme="dark"] .mband--black .msymbol { filter: invert(1); }   /* the mark, not a work */
.mclose { font-family: var(--f-head); font-style: italic; font-size: var(--t-meta); }

@media (max-width: 800px) {
  .mband { padding: var(--u4) var(--bleed); }
  .mslides { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--u1); }
  .mcard { padding: var(--u2) var(--u1); }
  .mslides__btn { width: 40px; height: 40px; }
  .mabout { width: 100%; }
}

/* A strip whose images share one height: each figure grows in proportion to
   its image's ratio (--ar, width / height), so equal heights fall out of the
   arithmetic — no crop. Stacks on the narrowest screens. */
.off-strip--even { display: flex; gap: var(--u2); align-items: flex-start; }
.off-strip--even > figure { flex: var(--ar, .75) 1 0; min-width: 0; }
.off-strip--even img { width: 100%; height: auto; }
@media (max-width: 520px) {
  .off-strip--even { flex-direction: column; align-items: stretch; }
  .off-strip--even > figure { flex: none; }
}

/* Energy Portraits: testimonials as a carousel (the Mentorship slider), the
   card on a faint tint so it stands off the page ground; and room at the foot
   of the page so the last section does not butt against the end. */
.off-testimonials .mcard { background: color-mix(in srgb, var(--ink) 6%, var(--paper)); }
.off-testimonials .mslide figcaption { letter-spacing: 0; text-transform: none; }
.energy { padding-bottom: calc(var(--u4) * 2.5); }

/* Energy Portraits hero: Soloma as the page's background, edge to edge across
   the column (through the field's side padding), the title block centred on
   it in light text over a light black scrim (the live page sets a 10% black
   overlay). Cover crop — the painting is a ground here; it is shown whole on
   the Sensate page. */
.off-hero {
  --bleed: var(--u2);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(78vh, 780px);
  margin: 0 calc(var(--bleed) * -1);
  padding: var(--u4) var(--u2);
  overflow: hidden;
  color: #F5F5F5;
}
.off-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.off-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 9, 12, .40);
}
.off-hero__text { position: relative; z-index: 2; }
.off-hero .off-kicker { color: rgba(245, 245, 245, .85); }
.off-hero .off-lede,
.off-hero .off-prose span { color: #F5F5F5; }
@media (max-width: 520px) { .off-hero { --bleed: var(--u1); min-height: 64svh; } }

/* List items in the prose columns are justified like the paragraphs. */
.field .off-list li { text-align: justify; text-justify: inter-word; hyphens: manual; }

/* Testimonials hold one height while paging (client): with JS, every
   testimonial sits in the same grid cell, so the card is always as tall as
   the tallest one; only the current one is visible. Nothing below moves. */
.is-sliding .mcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}
.is-sliding .mcard > .mh2 { grid-row: 1; }
.is-sliding .mslide {
  grid-row: 2;
  grid-column: 1;
  margin-top: var(--u2);
  visibility: hidden;
}
.is-sliding .mslide.is-current { visibility: visible; }

/* Energy Portraits: text set on the right of an image spread runs 20% short of
   its column, so it keeps clear of the window's right edge (client). */
.energy .off-spread:not(.off-spread--flip) > .off-spread__text { max-width: 80%; }
@media (max-width: 800px) {
  .energy .off-spread:not(.off-spread--flip) > .off-spread__text { max-width: none; }
}

/* Mentorship rate: the two short lines under "Rate" are centred (client). */
.field .mband--rate .mlines p { text-align: center; text-align-last: center; }

/* Mentorship alignment (client): every paragraph centred — the prose, the
   lines, the testimonials — except the About box, which stays justified. The
   photo band's opening line sits at the left, with the About box, both well
   clear of the edge. */
.field .mentor .mprose p,
.field .mentor .mlines p,
.field .mentor .mslide blockquote p {
  text-align: center;
  text-align-last: center;
}
.field .mentor .mabout .mprose p {
  text-align: justify;
  text-align-last: left;
}
.mentor .mband--photo { padding-inline: var(--u4); }
.mentor .mphoto__line {
  margin-left: 0;
  text-align: left;
  text-align-last: left;
}
@media (max-width: 800px) {
  .mentor .mband--photo { padding-inline: var(--u2); }
}
