/* ============================================================
   Socionics Association of Japan — institutional entry page
   Louvre dignity / Bauhaus structure / precise decorative detail
   ============================================================ */

:root {
  --ah-max: 1180px;
  --ah-gutter: clamp(20px, 4vw, 48px);
  --ah-space: clamp(84px, 10vw, 144px);
  --ah-navy: #18243d;
  --ah-navy2: #0f182b;
}

.association-page { margin: 0; background: var(--paper2, #fbf8f1); color: var(--ink, #1c1a16); }
.ah-skip { position: fixed; left: 8px; top: 8px; z-index: 100000; transform: translateY(-160%); padding: 10px 16px; background: var(--ink, #1c1a16); color: var(--paper2, #fbf8f1); font: 500 13px/1.4 var(--sans, sans-serif); text-decoration: none; }
.ah-skip:focus { transform: translateY(0); }

.association-home,
.association-home * { box-sizing: border-box; }
.association-home { width: 100%; overflow: hidden; background: var(--paper2, #fbf8f1); color: var(--ink, #1c1a16); font-family: var(--serif, serif); font-size: 17px; line-height: 1.85; text-align: left; -webkit-font-smoothing: antialiased; }
.association-home img { display: block; max-width: 100%; }
.association-home a { color: inherit; text-decoration: none; }
.association-home h1,
.association-home h2,
.association-home h3,
.association-home p,
.association-home dl,
.association-home dd,
.association-home ul { margin: 0; padding: 0; text-align: inherit; }
.association-home :focus-visible { outline: 3px solid var(--gold-lt, #c9a227); outline-offset: 4px; }

.ah-container { width: min(100%, var(--ah-max)); margin: 0 auto; padding-inline: var(--ah-gutter); }
.ah-section { padding-block: var(--ah-space); }
.ah-eyebrow { color: var(--gold-dk, #8a6a1f); font-family: var(--sans, sans-serif); font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .28em; text-transform: uppercase; }

.ah-heading { margin-bottom: clamp(44px, 6vw, 72px); }
.ah-heading h2,
.ah-about h2,
.ah-policy h2,
.ah-final h2 { margin-top: 14px; font-family: var(--disp, serif); font-size: clamp(32px, 4.4vw, 54px); font-weight: 500; line-height: 1.25; letter-spacing: .035em; }
.ah-heading > p:last-child { max-width: 660px; margin-top: 18px; color: var(--ink2, #5a554b); }
.ah-heading--center { max-width: 760px; margin-inline: auto; text-align: center; }
.ah-heading--center > p:last-child { margin-inline: auto; }
.ah-heading--split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .65fr); gap: clamp(50px, 9vw, 130px); align-items: end; }
.ah-heading--split > p:last-child { margin: 0 0 4px; }

.ah-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 24px; padding: 14px 27px; border: 1px solid transparent; border-radius: 3px; font-family: var(--sans, sans-serif); font-size: 13px; font-weight: 500; letter-spacing: .08em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.ah-button:hover { transform: translateY(-2px); }
.ah-button--ink { background: var(--ink, #1c1a16); color: var(--paper2, #fbf8f1) !important; }
.ah-button--paper { background: var(--paper2, #fbf8f1); color: var(--noir, #15120e) !important; }
.ah-button--outline { border-color: rgba(234, 227, 213, .45); color: var(--noir-ink, #eae3d5) !important; }
.ah-button--outline:hover { border-color: var(--gold, #b0882a); background: rgba(176, 136, 42, .1); }
.ah-button--cyan { background: #00cce0; color: #062b31 !important; }
.ah-button--cyan:hover { background: #43e2ef; }

.ah-link { display: inline-flex; align-items: center; gap: 18px; color: var(--ink, #1c1a16); font-family: var(--sans, sans-serif); font-size: 13px; font-weight: 500; letter-spacing: .07em; }
.ah-link i { font-style: normal; transition: transform .2s ease; }
.ah-link:hover i { transform: translateX(5px); }
.ah-link--light { color: var(--noir-ink, #eae3d5); }

/* Institutional hero */
.ah-hero { position: relative; min-height: clamp(620px, 74vh, 790px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line2, #d6cdb9); background: var(--paper, #f3eee4); }
.ah-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(243, 238, 228, 1) 0%, rgba(243, 238, 228, .98) 45%, rgba(243, 238, 228, .74) 58%, rgba(243, 238, 228, .08) 80%); }
.ah-hero__art { position: absolute; inset: 0 0 0 43%; overflow: hidden; }
.ah-hero__art::after { content: ''; position: absolute; inset: 24px; border: 1px solid rgba(176, 136, 42, .46); pointer-events: none; }
.ah-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.82) contrast(.96); }
.ah-hero__orbit { position: absolute; border: 1px solid rgba(176, 136, 42, .45); border-radius: 50%; }
.ah-hero__orbit--one { width: 190px; height: 190px; right: 10%; top: 12%; }
.ah-hero__orbit--two { width: 82px; height: 82px; left: 10%; bottom: 14%; }
.ah-hero__inner { position: relative; z-index: 2; }
.ah-hero__copy { width: min(100%, 690px); padding-block: 100px; }
.ah-hero h1 { margin-top: 28px; max-width: 700px; font-family: 'Shippori Mincho', var(--disp, serif); font-size: clamp(42px, 5.5vw, 72px); font-weight: 500; line-height: 1.42; letter-spacing: .045em; }
.ah-hero__lead { max-width: 650px; margin-top: 26px !important; color: var(--ink2, #5a554b); font-size: clamp(16px, 1.4vw, 19px); line-height: 2; }
.ah-hero .ah-button { margin-top: 38px; }
.ah-hero__index { position: absolute; right: var(--ah-gutter); bottom: 34px; color: var(--ink3, #938c7c); font: 500 9px/1 var(--sans, sans-serif); letter-spacing: .18em; }
.ah-hero__index span { color: var(--gold, #b0882a); margin-right: 12px; font-family: var(--mono, monospace); }

/* Audience split */
.ah-paths { background: var(--paper2, #fbf8f1); }
.ah-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ah-path { position: relative; min-height: 570px; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid var(--line2, #d6cdb9); box-shadow: 0 28px 70px -58px rgba(28, 26, 22, .6); }
.ah-path__image,
.ah-path__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.ah-path__image { object-fit: cover; transition: transform .8s ease; }
.ah-path:hover .ah-path__image { transform: scale(1.025); }
.ah-path__copy { position: relative; z-index: 2; width: 100%; padding: clamp(34px, 5vw, 58px); }
.ah-path h3 { margin-top: 14px; font-family: 'Shippori Mincho', var(--disp, serif); font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1.45; }
.ah-path__copy > p:not(.ah-eyebrow) { max-width: 500px; margin-top: 18px; font-size: 15px; line-height: 1.9; }
.ah-path__copy small { display: block; margin-top: 16px; font: 500 11px/1.7 var(--sans, sans-serif); letter-spacing: .05em; }
.ah-path .ah-link { margin-top: 32px; }
.ah-path__brand { position: absolute; z-index: 2; left: clamp(34px, 5vw, 58px); top: 30px; font-family: var(--disp, serif); font-size: 13px; letter-spacing: .12em; }
.ah-path__brand em { font-family: var(--serif, serif); font-weight: 400; }
.ah-path--personal { color: var(--ink, #1c1a16); }
.ah-path--personal .ah-path__image { object-position: center 36%; }
.ah-path--personal .ah-path__veil { background: linear-gradient(0deg, rgba(251, 248, 241, .99), rgba(251, 248, 241, .89) 48%, rgba(251, 248, 241, .08) 83%); }
.ah-path--personal .ah-path__copy > p:not(.ah-eyebrow) { color: var(--ink2, #5a554b); }
.ah-path--business { color: var(--noir-ink, #eae3d5); border-color: rgba(176, 136, 42, .5); background: var(--ah-navy2); }
.ah-path--business .ah-path__veil { background: linear-gradient(0deg, rgba(15, 24, 43, .99), rgba(15, 24, 43, .9) 50%, rgba(15, 24, 43, .2) 88%); }
.ah-path--business .ah-path__copy > p:not(.ah-eyebrow),
.ah-path--business .ah-path__copy small { color: #c3cad6; }
.ah-path--business h3 { color: var(--noir-ink, #eae3d5); font-size: clamp(30px, 3.2vw, 40px); }
.ah-path--business .ah-eyebrow { color: var(--gold-lt, #c9a227); }
.ah-path--business .ah-path__brand { color: var(--gold-lt, #c9a227); }

.ah-learn-path { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 22px; padding: 28px 34px; border: 1px solid var(--line2, #d6cdb9); background: var(--paper, #f3eee4); transition: background .2s ease; }
.ah-learn-path:hover { background: var(--panel, #ece5d6); }
.ah-learn-path__symbol { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--gold, #b0882a); border-radius: 50%; color: var(--gold-dk, #8a6a1f); font: 500 24px/1 var(--disp, serif); }
.ah-learn-path__copy { display: grid; grid-template-columns: minmax(120px, .45fr) minmax(220px, .8fr) minmax(300px, 1.3fr); gap: 22px; align-items: baseline; }
.ah-learn-path__copy b { color: var(--gold-dk, #8a6a1f); font: 500 10px/1.5 var(--sans, sans-serif); letter-spacing: .2em; text-transform: uppercase; }
.ah-learn-path__copy strong { font-family: 'Shippori Mincho', var(--disp, serif); font-size: 21px; font-weight: 500; }
.ah-learn-path__copy small { color: var(--ink2, #5a554b); font-size: 13px; line-height: 1.7; }

/* Definition */
.ah-about { border-block: 1px solid var(--line, #e3dbcb); background-color: var(--paper, #f3eee4); background-image: radial-gradient(circle at 1px 1px, rgba(28,26,22,.03) 1px, transparent 0); background-size: 22px 22px; }
.ah-about__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr); gap: clamp(60px, 10vw, 150px); align-items: center; }
.ah-about h2 { margin-bottom: 28px; }
.ah-about__copy > p:not(.ah-eyebrow) { max-width: 700px; margin-top: 16px; color: var(--ink2, #5a554b); line-height: 2.05; }
.ah-about__copy .ah-link { margin-top: 32px; }
.ah-scope { border-top: 1px solid var(--line2, #d6cdb9); }
.ah-scope > div { display: grid; grid-template-columns: 130px 1fr; align-items: baseline; padding: 22px 6px; border-bottom: 1px solid var(--line2, #d6cdb9); }
.ah-scope dt { color: var(--gold-dk, #8a6a1f); font: 500 clamp(36px, 5vw, 60px)/1 var(--disp, serif); }
.ah-scope dd { color: var(--ink2, #5a554b); font: 500 12px/1.7 var(--sans, sans-serif); letter-spacing: .07em; }
.ah-scope__principle { grid-template-columns: 1fr !important; gap: 9px; }
.ah-scope__principle dt { color: var(--ink, #1c1a16); font-family: 'Shippori Mincho', var(--disp, serif); font-size: 21px; line-height: 1.5; }

/* Association work */
.ah-work { background: var(--paper2, #fbf8f1); }
.ah-work__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line2, #d6cdb9); border-left: 1px solid var(--line2, #d6cdb9); }
.ah-work__grid article { min-height: 300px; padding: clamp(30px, 4vw, 46px); border-right: 1px solid var(--line2, #d6cdb9); border-bottom: 1px solid var(--line2, #d6cdb9); }
.ah-work__grid article > span { color: var(--gold, #b0882a); font: 500 11px/1 var(--mono, monospace); }
.ah-work__grid h3 { margin-top: 48px; font-family: 'Shippori Mincho', var(--disp, serif); font-size: 24px; font-weight: 500; line-height: 1.5; }
.ah-work__grid p { margin-top: 16px; color: var(--ink2, #5a554b); font-size: 14px; line-height: 1.9; }

/* Policy */
.ah-policy { position: relative; padding-block: clamp(100px, 12vw, 170px); overflow: hidden; background: var(--noir, #15120e); color: var(--noir-ink, #eae3d5); }
.ah-policy::before { content: ''; position: absolute; left: -140px; top: -240px; width: 520px; height: 520px; border: 1px solid rgba(176, 136, 42, .22); border-radius: 50%; }
.ah-policy__inner { position: relative; max-width: 930px; text-align: center; }
.ah-policy .ah-eyebrow { color: var(--gold-lt, #c9a227); }
.ah-policy h2 { color: var(--noir-ink, #eae3d5); }
.ah-policy__inner > p:not(.ah-eyebrow) { max-width: 760px; margin: 24px auto 0; color: var(--noir-ink2, #b7ae9c); line-height: 2; }
.ah-policy__principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 54px; border-top: 1px solid rgba(176,136,42,.34); border-left: 1px solid rgba(176,136,42,.34); text-align: left; }
.ah-policy__principles article { min-height: 250px; padding: 28px 24px; border-right: 1px solid rgba(176,136,42,.34); border-bottom: 1px solid rgba(176,136,42,.34); }
.ah-policy__principles article > span { color: var(--gold-lt, #c9a227); font: 500 10px/1 var(--mono, monospace); letter-spacing: .12em; }
.ah-policy__principles h3 { margin-top: 34px; color: var(--noir-ink, #eae3d5); font-family: 'Shippori Mincho', var(--disp, serif); font-size: 19px; font-weight: 500; line-height: 1.55; }
.ah-policy__principles p { margin-top: 13px; color: var(--noir-ink2, #b7ae9c); font-size: 12px; line-height: 1.85; }
.ah-policy .ah-link { margin-top: 34px; }

/* Knowledge resources */
.ah-resources { background: var(--paper2, #fbf8f1); }
.ah-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ah-resource { border: 1px solid var(--line, #e3dbcb); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.ah-resource:hover { transform: translateY(-5px); box-shadow: 0 28px 70px -55px rgba(28, 26, 22, .65); }
.ah-resource__image { aspect-ratio: 16/10; overflow: hidden; background: var(--panel, #ece5d6); }
.ah-resource__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ah-resource:hover img { transform: scale(1.035); }
.ah-resource__copy { padding: 28px; }
.ah-resource__num { color: var(--gold, #b0882a); font: 500 10px/1 var(--mono, monospace); }
.ah-resource h3 { margin-top: 18px; font-family: 'Shippori Mincho', var(--disp, serif); font-size: 22px; font-weight: 500; line-height: 1.5; }
.ah-resource__copy > p { min-height: 84px; margin-top: 13px; color: var(--ink2, #5a554b); font-size: 14px; line-height: 1.8; }
.ah-resource .ah-link { margin-top: 24px; }

/* Association collaboration project */
.ah-project { border-top: 1px solid var(--line, #e3dbcb); background: var(--paper2, #fbf8f1); }
.ah-project__card {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(42px, 7vw, 88px);
  border: 1px solid rgba(0, 204, 224, .46);
  background: #091019;
  color: #fff;
}
.ah-project__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,13,22,.99), rgba(7,13,22,.91) 45%, rgba(7,13,22,.24) 78%); pointer-events: none; }
.ah-project__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-project__copy { position: relative; z-index: 1; max-width: 630px; }
.ah-project__copy .ah-eyebrow { color: #00cce0; }
.ah-project__copy h2 { margin-top: 15px; color: #fff; font-family: var(--disp, serif); font-size: clamp(30px, 4vw, 48px); font-weight: 500; line-height: 1.32; letter-spacing: .025em; }
.ah-project__copy > p:not(.ah-eyebrow) { margin-top: 18px; color: #c1ccd2; line-height: 1.95; }
.ah-project__copy > small { display: block; margin-top: 14px; color: #8fa2ac; font: 500 10px/1.7 var(--sans, sans-serif); letter-spacing: .08em; }
.ah-project__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 32px; }

/* News */
.ah-news { border-top: 1px solid var(--line, #e3dbcb); background: var(--paper, #f3eee4); }
.ah-news__grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(40px, 8vw, 100px); }
.ah-news h2 { margin-top: 10px; font-family: var(--disp, serif); font-size: 34px; font-weight: 500; }
.ah-news ul { list-style: none; border-top: 1px solid var(--line2, #d6cdb9); }
.ah-news li { border-bottom: 1px solid var(--line2, #d6cdb9); }
.ah-news li a { display: grid; grid-template-columns: 110px minmax(0, 1fr) 20px; gap: 24px; align-items: center; padding: 22px 4px; }
.ah-news time { color: var(--ink3, #938c7c); font: 400 11px/1.5 var(--mono, monospace); }
.ah-news li span { font-size: 14px; }
.ah-news li i { color: var(--gold, #b0882a); font-style: normal; transition: transform .2s ease; }
.ah-news li a:hover i { transform: translateX(4px); }

/* Final split */
.ah-final { position: relative; padding-block: clamp(100px, 13vw, 170px); overflow: hidden; background: linear-gradient(110deg, var(--noir2, #2a251d) 0 50%, var(--ah-navy2) 50%); color: var(--noir-ink, #eae3d5); text-align: center; }
.ah-final::after { content: ''; position: absolute; inset: 22px; border: 1px solid rgba(176, 136, 42, .36); pointer-events: none; }
.ah-final__inner { position: relative; z-index: 1; max-width: 870px; }
.ah-final .ah-eyebrow { color: var(--gold-lt, #c9a227); }
.ah-final h2 { color: var(--noir-ink, #eae3d5); }
.ah-final__inner > p:not(.ah-eyebrow) { max-width: 620px; margin: 20px auto 36px; color: var(--noir-ink2, #b7ae9c); }
.ah-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 980px) {
  .ah-heading--split,
  .ah-about__grid { grid-template-columns: 1fr; gap: 44px; }
  .ah-heading--split > p:last-child { margin: 0; }
  .ah-learn-path__copy { grid-template-columns: 1fr; gap: 5px; }
  .ah-work__grid { grid-template-columns: 1fr; }
  .ah-work__grid article { min-height: 0; }
  .ah-policy__principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-resource-grid { gap: 14px; }
}

@media (max-width: 760px) {
  :root { --ah-space: 78px; }
  .association-home { font-size: 16px; }
  .ah-heading h2,
  .ah-about h2,
  .ah-policy h2,
  .ah-final h2 { font-size: clamp(29px, 8.5vw, 40px); }
  .ah-heading--split { display: block; }
  .ah-heading--split > p:last-child { margin-top: 18px; }

  .ah-hero { min-height: 720px; align-items: flex-end; }
  .ah-hero::before { background: linear-gradient(0deg, rgba(243, 238, 228, 1) 0%, rgba(243, 238, 228, .97) 55%, rgba(243, 238, 228, .3) 86%); }
  .ah-hero__art { inset: 0; height: 52%; }
  .ah-hero__art::after { inset: 12px; }
  .ah-hero__copy { padding-block: 210px 70px; }
  .ah-hero h1 { margin-top: 20px; font-size: clamp(36px, 10.5vw, 48px); line-height: 1.5; }
  .ah-hero__lead { margin-top: 18px !important; line-height: 1.9; }
  .ah-hero .ah-button { width: 100%; margin-top: 28px; }
  .ah-hero__index { display: none; }

  .ah-path-grid { grid-template-columns: 1fr; }
  .ah-path { min-height: 520px; }
  .ah-path__copy { padding: 32px 26px; }
  .ah-path__brand { left: 26px; top: 24px; }
  .ah-path h3 { font-size: 32px; }
  .ah-learn-path { grid-template-columns: 58px 1fr; gap: 18px; padding: 24px 20px; }
  .ah-learn-path__symbol { width: 50px; height: 50px; }
  .ah-learn-path > .ah-link { grid-column: 2; }

  .ah-about__grid { display: block; }
  .ah-scope { margin-top: 52px; }
  .ah-scope > div { grid-template-columns: 100px 1fr; }
  .ah-work__grid article { padding: 34px 28px; }
  .ah-work__grid h3 { margin-top: 28px; }
  .ah-policy__principles { grid-template-columns: 1fr; margin-top: 38px; }
  .ah-policy__principles article { min-height: 0; }

  .ah-resource-grid { grid-template-columns: 1fr; }
  .ah-resource__copy > p { min-height: 0; }
  .ah-project__card { min-height: 530px; align-items: flex-end; padding: 36px 26px; }
  .ah-project__card::after { background: linear-gradient(0deg, rgba(7,13,22,.99), rgba(7,13,22,.82) 62%, rgba(7,13,22,.14)); }
  .ah-project__image { object-position: 62% center; }
  .ah-project__actions { align-items: stretch; flex-direction: column; gap: 20px; }
  .ah-project__actions .ah-button { width: 100%; }
  .ah-news__grid { grid-template-columns: 1fr; gap: 28px; }
  .ah-news li a { grid-template-columns: 1fr 20px; gap: 8px 16px; }
  .ah-news time,
  .ah-news li span { grid-column: 1; }
  .ah-news li i { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .ah-final { background: linear-gradient(180deg, var(--noir2, #2a251d), var(--ah-navy2)); }
  .ah-final__actions { display: grid; }
  .ah-final .ah-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .association-home *,
  .association-home *::before,
  .association-home *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
