.guide-page { background: #101b24; }
.guide-header { position: absolute; }
.guide-header > p { margin: 0; color: #8f8371; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.return-link { justify-self: end; min-height: 44px; display: flex; align-items: center; color: #d8ccb5; font-size: 14px; font-style: italic; text-decoration: none; }
.return-link span { margin-left: 9px; color: var(--gold); }
.guide-hero { min-height: 860px; position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 150px clamp(24px, 10vw, 160px) 100px; background: radial-gradient(circle at 78% 46%, rgba(195,128,45,.18), transparent 20%), linear-gradient(120deg, #090f14, #182933 60%, #2b0a13); }
.guide-hero::before { content: ''; position: absolute; inset: var(--header-h) 42% 0 0; border-right: 1px solid var(--line); background: repeating-linear-gradient(90deg,transparent 0 14.8%,rgba(217,174,88,.035) 15% 15.2%); }
.guide-hero .eyebrow, .guide-hero h1, .guide-lede { position: relative; z-index: 2; }
.guide-hero h1 { max-width: 970px; margin: 15px 0 38px; color: #f0e6d2; font-family: var(--display); font-size: clamp(76px, 8.6vw, 138px); font-weight: 400; line-height: .83; letter-spacing: -.04em; }
.guide-hero h1 em { color: var(--gold); font-style: normal; }
.guide-lede { max-width: 660px; color: #bfb29d; font-size: 22px; }
.folio-rule { width: 320px; height: 320px; position: absolute; right: 8%; top: 29%; display: grid; place-items: center; transform: rotate(8deg); border: 1px solid rgba(217,174,88,.22); border-radius: 50% 50% 44% 44%; color: rgba(217,174,88,.08); font-family: var(--display); font-size: 190px; }
.folio-rule::before, .folio-rule::after { content: ''; position: absolute; inset: 8%; border: 1px solid rgba(217,174,88,.12); border-radius: inherit; }.folio-rule::after { inset: 19%; }
.guide-mask { width: 210px; height: 115px; position: absolute; right: 11.7%; top: 43%; clip-path: polygon(0 18%,26% 0,50% 18%,74% 0,100% 18%,86% 86%,57% 64%,50% 100%,43% 64%,14% 86%); background: linear-gradient(135deg,#f4ead4,#9b835e); box-shadow: 0 30px 60px #000; }
.guide-mask i { width: 26%; height: 13px; position: absolute; top: 33%; border-radius: 50%; background: #080d11; }.guide-mask i:first-child { left: 16%; transform: rotate(8deg); }.guide-mask i:nth-child(2) { right: 16%; transform: rotate(-8deg); }.guide-mask b { width: 2px; height: 46px; position: absolute; left: 50%; top: 40%; background: #8a611e; }

.guide-article { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 830px); justify-content: center; gap: clamp(55px, 9vw, 140px); padding: 140px 36px 120px; }
.guide-index { height: max-content; position: sticky; top: 40px; display: grid; padding: 24px 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); }
.guide-index span { margin-bottom: 12px; color: #756b5c; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.guide-index a { min-height: 40px; display: flex; align-items: center; color: #b7aa95; font-size: 14px; text-decoration: none; }.guide-index a:hover { color: var(--gold-bright); }
.guide-copy section { padding: 0 0 95px; margin-bottom: 95px; border-bottom: 1px solid var(--line); scroll-margin-top: 40px; }.guide-copy section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.guide-copy h2 { margin-bottom: 28px; color: #f0e6d3; font-family: var(--display); font-size: clamp(44px, 5vw, 72px); font-weight: 400; line-height: 1; }
.guide-copy p { color: #c2b6a0; font-size: 18px; line-height: 1.68; }.guide-copy strong { color: #eee1c8; font-weight: 600; }.guide-copy code { padding: .08em .35em; color: #efd183; background: rgba(217,174,88,.08); font-family: var(--serif); font-size: .88em; }
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 38px 0; background: var(--line); border: 1px solid var(--line); }
.token-grid > div { min-height: 100px; display: grid; grid-template-columns: 52px 1fr; align-content: center; column-gap: 16px; padding: 18px; background: #101b24; }
.token-grid i { width: 52px; height: 52px; grid-row: 1 / 3; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: var(--token); box-shadow: inset 0 0 15px rgba(255,255,255,.1); }.token-grid span { align-self: end; color: #dbceb8; font-size: 15px; }.token-grid code { align-self: start; width: max-content; padding: 0; color: #7f7565; background: transparent; font-size: 11px; letter-spacing: .1em; }
.guide-footer { min-height: 360px; }

@media (max-width: 1100px) {
  .guide-header { grid-template-columns: 1fr auto; }
  .guide-header > p { display: none; }
  .guide-header .return-link { grid-column: 2; grid-row: 1; }
  .guide-mask { right: 4%; opacity: .62; }
}

@media (max-width: 760px) {
  .guide-header > p { display: none; }.return-link { font-size: 12px; }.return-link span { display: none; }
  .guide-hero { min-height: 760px; padding: 130px 22px 90px; }.guide-hero::before { inset: var(--header-h) 0 0; border-right: 0; }.guide-hero h1 { font-size: clamp(58px,18vw,76px); }.guide-hero h1 br { display: none; }.guide-lede { max-width: 340px; font-size: 18px; }.folio-rule { width: 250px; height: 250px; right: -95px; top: 47%; font-size: 120px; opacity: .55; }.guide-mask { width: 140px; height: 78px; right: -52px; top: 61%; opacity: .24; }
  .guide-article { display: block; padding: 90px 24px 120px; }.guide-index { position: static; margin-bottom: 80px; }.guide-index a { min-height: 44px; }.guide-copy section { padding-bottom: 68px; margin-bottom: 68px; }.guide-copy p { font-size: 17px; }.token-grid { grid-template-columns: 1fr; }
}

/* Pass 2 — a technical folio, not a generic documentation page. */
.guide-page { background: radial-gradient(circle at 10% 46%,rgba(71,121,137,.07),transparent 26rem),#0b1821; }
.guide-hero { min-height: 900px; justify-content: center; padding-top: 150px; background: radial-gradient(circle at 79% 46%,rgba(202,135,47,.16),transparent 17rem),linear-gradient(112deg,#071016,#142934 60%,#310813); }
.guide-hero::after { content: 'FIELD NOTES / 094'; position: absolute; right: 4%; bottom: 34px; color: rgba(217,174,88,.3); font-size: 9px; letter-spacing: .22em; writing-mode: vertical-rl; }
.guide-hero h1 { width: min(1040px,84vw); max-width: none; margin: 22px 0 32px; font-size: clamp(72px,7.9vw,126px); line-height: .8; letter-spacing: -.045em; }
.guide-hero h1 span, .guide-hero h1 em { width: max-content; max-width: 100%; display: block; }
.guide-hero h1 em { color: var(--gold); font-style: normal; }
.guide-hero h1 em:first-of-type { margin-left: clamp(30px,9vw,140px); }
.guide-hero h1 em:last-of-type { margin-left: clamp(70px,20vw,315px); color: #efe5d0; }
.guide-lede { margin-left: clamp(70px,20vw,315px); padding-left: 24px; border-left: 1px solid var(--gold); }
.folio-rule { right: 6%; top: 32%; transform: rotate(-5deg); }
.guide-mask { z-index: 1; right: 10%; top: 48%; transform: rotate(3deg); box-shadow: 0 34px 70px rgba(0,0,0,.65); animation: guide-vigil 8s ease-in-out infinite; }
.guide-mask::after { content: ''; position: absolute; inset: -34px; z-index: -1; border: 1px solid rgba(217,174,88,.16); border-radius: 50%; }
.guide-article { position: relative; grid-template-columns: 220px minmax(0,850px); padding-top: 130px; }
.guide-article::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg,transparent,rgba(117,185,200,.34),transparent); }
.guide-index { top: 28px; padding: 28px 0; background: linear-gradient(180deg,rgba(11,24,33,.95),rgba(11,24,33,.64)); backdrop-filter: blur(10px); }
.guide-index a { position: relative; padding-left: 0; transition: padding .3s,color .3s; }
.guide-index a:hover { padding-left: 10px; }
.guide-copy section { position: relative; }
.guide-copy section::before { content: attr(id); position: absolute; right: 0; top: -10px; color: rgba(217,174,88,.035); font-family: var(--display); font-size: clamp(70px,9vw,130px); text-transform: uppercase; pointer-events: none; }
.guide-copy h2 { position: relative; z-index: 1; }
.mechanism-plate { min-height: 290px; position: relative; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 42px; margin: 12px 0 44px; padding: 34px; border: 1px solid rgba(217,174,88,.26); background: radial-gradient(circle at 22% 48%,rgba(217,174,88,.12),transparent 23%),linear-gradient(125deg,rgba(40,15,19,.42),rgba(6,15,21,.65)); overflow: hidden; }
.mechanism-plate::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(217,174,88,.08); pointer-events: none; }
.mechanism-shell { width: 190px; height: 165px; position: relative; justify-self: center; clip-path: polygon(4% 18%,50% 0,96% 18%,87% 77%,64% 100%,50% 85%,36% 100%,13% 77%); background: radial-gradient(circle at 34% 20%,#fff8e8,#c7b99e 56%,#74634c); filter: drop-shadow(0 24px 22px rgba(0,0,0,.6)); }
.mechanism-shell::before, .mechanism-shell::after { content: ''; width: 26%; height: 15px; position: absolute; top: 38%; border-radius: 50%; background: #071016; box-shadow: inset 0 0 0 1px #c89b43; }
.mechanism-shell::before { left: 15%; transform: rotate(8deg); }
.mechanism-shell::after { right: 15%; transform: rotate(-8deg); }
.mechanism-shell i { width: 34%; height: 1px; position: absolute; top: 24%; background: var(--gold); }
.mechanism-shell i:first-child { left: 11%; transform: rotate(-17deg); }
.mechanism-shell i:last-child { right: 11%; transform: rotate(17deg); }
.mechanism-plate ol { position: relative; z-index: 2; margin: 0; padding: 0; list-style: none; }
.mechanism-plate li { min-height: 58px; display: grid; grid-template-columns: 34px 1fr; align-content: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mechanism-plate li:last-child { border-bottom: 0; }
.mechanism-plate li span { grid-row: 1 / 3; align-self: center; color: var(--gold); font-size: 10px; letter-spacing: .14em; }
.mechanism-plate strong { color: #e8dcc5; font-family: var(--display); font-size: 17px; font-weight: 400; }
.mechanism-plate small { color: #887d6d; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.mechanism-plate figcaption { position: absolute; right: 16px; bottom: 10px; color: #796f61; font-size: 10px; font-style: italic; }
.token-grid { grid-template-columns: repeat(3,1fr); }
.token-grid > div { min-height: 112px; grid-template-columns: 44px 1fr; column-gap: 12px; }
.token-grid i { width: 44px; height: 44px; }

@keyframes guide-vigil { 0%,44%,100% { transform: rotate(3deg) translateX(0); } 49%,56% { transform: rotate(2deg) translateX(-6px); } 63%,70% { transform: rotate(4deg) translateX(5px); } }

@media (max-width: 1100px) {
  .guide-header { grid-template-columns: 1fr auto; }
  .guide-header .nav-toggle { display: none; }
  .guide-hero h1 { width: min(720px,88vw); }
  .guide-mask { right: 5%; top: 54%; }
  .guide-lede { max-width: 580px; }
  .token-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .guide-header { grid-template-columns: 1fr auto; }
  .guide-hero { min-height: 820px; padding: 132px 22px 88px; }
  .guide-hero h1 { width: 100%; margin: 18px 0 36px; font-size: clamp(54px,16.2vw,64px); line-height: .84; }
  .guide-hero h1 span, .guide-hero h1 em { width: auto; max-width: none; }
  .guide-hero h1 em:first-of-type { margin-left: 20px; }
  .guide-hero h1 em:last-of-type { margin-left: 54px; }
  .guide-lede { max-width: 326px; margin-left: 0; padding-left: 16px; font-size: 17px; }
  .folio-rule { right: -110px; top: 48%; }
  .guide-mask { width: 128px; height: 72px; right: -43px; top: 59%; opacity: .3; }
  .guide-article { padding-top: 82px; }
  .mechanism-plate { display: block; min-height: 500px; padding: 36px 24px; }
  .mechanism-shell { width: 168px; height: 148px; margin: 8px auto 42px; }
  .mechanism-plate figcaption { right: 24px; bottom: 14px; }
  .token-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-mask { animation: none; }
}

/* Pass 3 — the asset provenance is presented as another atelier plate. */
.return-link { position: relative; transition: color .3s, transform .3s; }
.return-link:hover { color: var(--gold-bright); transform: translateX(-4px); }
.workflow-plate { min-height: 470px; display: grid; grid-template-columns: 1.08fr .92fr; margin: 14px 0 38px; overflow: hidden; border: 1px solid rgba(217,174,88,.28); background: linear-gradient(135deg,#1e1112,#071018); box-shadow: 0 36px 70px rgba(0,0,0,.24); }
.workflow-plate img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; object-position: center 28%; filter: sepia(.13) saturate(.72) contrast(1.1) brightness(.84); }
.workflow-plate figcaption { display: grid; align-content: center; margin: 0; padding: 34px; background: radial-gradient(circle at 0 40%,rgba(217,174,88,.11),transparent 45%); }
.workflow-plate figcaption span { min-height: 94px; display: grid; grid-template-columns: 36px 1fr; align-content: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.workflow-plate figcaption span:last-child { border-bottom: 0; }
.workflow-plate b { grid-row: 1 / 3; align-self: center; color: var(--gold); font-size: 10px; font-weight: 500; letter-spacing: .15em; }
.workflow-plate strong { color: #ecdfc7; font-family: var(--display); font-size: 20px; font-weight: 400; }
.workflow-plate small { color: #837867; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 760px) {
  .workflow-plate { display: block; min-height: 0; }
  .workflow-plate img { height: 480px; min-height: 0; }
  .workflow-plate figcaption { padding: 20px 24px; }
  .workflow-plate figcaption span { min-height: 74px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .guide-mask { right: 3%; top: 47%; opacity: .32; }
}

@media (max-width: 760px) {
  .guide-mask { right: -65px; top: 63%; opacity: .18; }
}
