/* emirimomotaweb.com · Light Sector
   Palette: lamp-room black, paper, ash, lamp blue. Hairlines carry the layout. */

:root {
  --ink: #171c1e;
  --paper: #f0ece3;
  --muted: #b0ada3;
  --lamp: #8b90bb;
  --line: #2d3336;
  --panel: #22282b;
  --shell: 1120px;
  --display: 'Zen Old Mincho', 'Times New Roman', serif;
  --body: 'Zen Kaku Gothic Antique', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.78;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lamp); color: var(--ink); }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--lamp); outline-offset: 4px; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.14;
  margin: 0;
}

.shell { width: min(var(--shell), calc(100% - 48px)); margin: 0 auto; }

.arc { display: block; fill: none; stroke: currentColor; stroke-width: 1; }
.arc path { vector-effect: non-scaling-stroke; }

/* ------------------------------------------------------------------ header */
.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark .dot { width: 5px; height: 5px; background: var(--lamp); border-radius: 50%; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--lamp); }

/* Button rules are written at .main-nav a.btn specificity so the nav link
   colour above cannot swallow the label on either state. */
.main-nav a.btn {
  color: var(--ink);
  background: var(--lamp);
  border: 1px solid var(--lamp);
  padding: 11px 17px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.main-nav a.btn:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lamp);
  border: 1px solid var(--lamp);
  color: var(--ink);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 15px 24px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* -------------------------------------------------------------------- hero */
.hero { padding: 46px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 22px;
  align-items: end;
}

.hero-copy { grid-column: 1 / 7; padding-bottom: 2px; }

.hero-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  position: relative;
  margin: 16px 0 0;
  font-size: 58px;
  line-height: 1.14;
  letter-spacing: 0.03em;
}

.hero-title span { display: block; }

.hero-arc {
  position: absolute;
  left: -58px;
  top: 8px;
  width: 56px;
  height: 56px;
  color: var(--lamp);
}

.name-table { margin-top: 20px; border-bottom: 1px solid var(--line); }

.name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 7px 0 6px;
}

.name-row .y { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.name-row .n { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }

.hero-lede { margin: 24px 0 0; max-width: 30ch; }

.hero-cta { margin-top: 24px; }

.hero-photo {
  grid-column: 8 / 13;
  justify-self: end;
  align-self: start;
  position: relative;
  width: 480px;
  margin: 0 -20px 0 0;
}

.hero-photo::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--line);
}

.hero-photo img { width: 480px; height: 720px; object-fit: cover; object-position: 50% 20%; }

/* ---------------------------------------------------------------- sections */
.section { padding: 76px 0 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
}

.sec-no { font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }

#partners .sec-no { color: var(--lamp); }

.sec-title { font-size: 24px; letter-spacing: 0.05em; }

.sec-line { flex: 1; height: 1px; background: var(--line); transform: translateY(-6px); }

/* --------------------------------------------------------------- partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  gap: 14px;
  width: 1048px;
  max-width: 100%;
  margin: 0 auto;
}

.partner-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  height: 118px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.partner-card:hover { border-color: var(--lamp); background: #262d31; }

.partner-no {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  border-right: 1px solid var(--line);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}

.partner-card:first-child .partner-no { color: var(--lamp); }

.partner-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 7px;
}

.partner-logo {
  width: 140px;
  height: 84px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.08);
  opacity: 0.92;
}

.partner-name {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- profile */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  width: 1048px;
  max-width: 100%;
  margin: 0 auto;
}

.profile-cell { border-top: 1px solid var(--line); min-height: 84px; padding: 12px 0 10px; }

.profile-val { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; }

.profile-lab { margin-top: 6px; font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ about */
.about-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.about-photo { position: relative; margin: 0; }

.about-photo img { width: 380px; height: 570px; object-fit: cover; object-position: 50% 18%; }

.about-arc { position: absolute; left: -14px; top: -14px; width: 64px; height: 64px; color: var(--lamp); }

.about-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; font-size: 15.8px; }

.about-text p { max-width: 38ch; }

.about-notes {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.about-notes span { display: block; }

/* --------------------------------------------------------------- timeline */
.tl { width: 1048px; max-width: 100%; margin: 0 auto; }

.tl-band {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  min-height: 92px;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  padding: 13px 0 11px;
}

.tl-band:last-child { margin-bottom: 0; }

.tl-band:first-child { border-top-color: var(--lamp); }

.tl-years { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }

.tl-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 40px; align-content: start; }

.tl-ev { font-size: 13px; line-height: 1.45; }

.tl-ev b {
  font-family: var(--display);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-right: 8px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- gallery */
.gallery-top {
  position: relative;
  width: 620px;
  max-width: 100%;
  margin: 0 0 24px;
  border: 1px solid var(--line);
}

.gallery-top img { width: 100%; height: auto; aspect-ratio: 620 / 413; object-fit: cover; }

.gallery-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.g-item { position: relative; margin: 0; border: 1px solid var(--line); }

.g-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 1px;
  height: 6px;
  background: var(--lamp);
}

.gallery-row .g-item img { width: 100%; height: auto; aspect-ratio: 268 / 402; object-fit: cover; }

/* ----------------------------------------------------------------- social */
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; align-items: start; }

.social-col { min-width: 0; }

.social-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 14px 0 13px;
  transition: color 0.18s ease;
}

.social-row:hover .social-handle { color: var(--lamp); }

.social-platform { font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.social-handle { font-size: 12px; letter-spacing: 0.05em; text-align: right; word-break: break-word; }

/* ----------------------------------------------------------------- footer */
.site-footer { margin-top: 88px; border-top: 1px solid var(--line); padding: 0 0 26px; }

.footer-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr auto; column-gap: 40px; padding-top: 66px; align-items: center; }

.footer-arc { position: absolute; left: 0; top: 0; width: 56px; height: 56px; color: var(--lamp); }

.footer-brand { display: flex; flex-direction: column; gap: 4px; }

.brand-name { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.brand-line { max-width: 34ch; font-size: 12px; line-height: 1.6; color: var(--muted); }

.footer-mid { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; min-height: 52px; padding-left: 40px; border-left: 1px solid var(--line); }

.language-nav a { font-size: 11px; letter-spacing: 0.05em; color: var(--muted); }
.language-nav a:hover, .language-nav a[aria-current="page"] { color: var(--paper); }
.language-nav .sep { margin: 0 6px; color: #4a5155; }

.footer-right { display: flex; align-items: center; justify-content: flex-end; min-height: 52px; padding-left: 40px; border-left: 1px solid var(--line); }

.footer-legal { margin: 0; font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }

.footer-credit { margin: 18px 0 0; font-size: 11px; letter-spacing: 0.02em; color: var(--muted); }

/* --------------------------------------------------------------- subpages */
.page-head { padding: 56px 0 0; }

.page-kicker { margin: 0; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.page-title { position: relative; margin: 16px 0 0; font-size: 52px; line-height: 1.14; letter-spacing: 0.03em; }

.page-arc { position: absolute; left: -58px; top: 8px; width: 56px; height: 56px; color: var(--lamp); }

.page-intro { max-width: 52ch; margin: 22px 0 0; font-size: 19px; line-height: 1.7; }

.page-rule { height: 1px; margin-top: 34px; background: var(--line); }

.page-body { padding: 44px 0 0; }

.page-body-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px);
  gap: 80px;
  justify-content: center;
  align-items: start;
}

.page-body-inner.single { grid-template-columns: minmax(0, 820px); justify-content: start; }

.facts-rail { position: sticky; top: 24px; border-top: 1px solid var(--lamp); padding-top: 16px; }

.fact { margin-bottom: 16px; }
.fact dt { font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 3px 0 0; font-family: var(--display); font-size: 14px; line-height: 1.5; }

.prose { font-size: 16px; }

.prose h2 { margin: 38px 0 14px; font-size: 26px; letter-spacing: 0.04em; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 68ch; }
.prose ul { padding-left: 18px; }
.prose li { margin-bottom: 6px; max-width: 66ch; }

.prose .note {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }

.taglist li { border: 1px solid var(--line); padding: 6px 10px; font-size: 11px; letter-spacing: 0.04em; }

.year-rows { margin: 0 0 26px; border-top: 1px solid var(--line); }

.year-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }

.year-row .yr { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--muted); }

.year-row .ev { font-size: 14.5px; line-height: 1.65; }
.year-row .ev b { display: block; margin-bottom: 2px; font-family: var(--display); font-size: 15px; font-weight: 600; }

.data-table { width: 100%; margin: 0 0 22px; border-collapse: collapse; font-size: 13.5px; }

.data-table th, .data-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

.data-table th { font-size: 8px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.qa { border-top: 1px solid var(--line); padding: 18px 0 20px; }
.qa h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.qa p { max-width: 68ch; margin: 0; }

.notfound-link { margin: 30px 0 0; }

@media (max-width: 1239px) {
  .hero-arc, .page-arc { display: none; }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1024px) {
  :root { --shell: 960px; }

  .hero-title { font-size: 48px; }
  .hero-photo { width: 420px; }
  .hero-photo img { width: 420px; height: 630px; }
  .hero-photo::before { display: none; }
  .hero-arc, .page-arc { display: none; }

  .partner-grid { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }

  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-photo img { width: 100%; max-width: 380px; }
  .about-text { grid-template-columns: minmax(0, 1fr); }
  .about-text p { max-width: 62ch; }

  .tl-band { grid-template-columns: 132px minmax(0, 1fr); gap: 20px; }
  .social-grid { column-gap: 40px; }

  .page-title { font-size: 44px; }
  .page-body-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-grid { column-gap: 24px; }
  .footer-mid, .footer-right { padding-left: 24px; }
  .footer-legal { white-space: normal; }
  .facts-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}

@media (max-width: 900px) {
  .hero-grid { display: block; }
  .hero-photo { width: 100%; max-width: 480px; margin: 30px 0 0; }
  .hero-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .hero-photo::before, .hero-arc { display: none; }

  .footer-grid { display: block; padding-top: 64px; }
  .footer-mid, .footer-right { border-left: 0; padding-left: 0; justify-content: flex-start; min-height: 0; }
  .footer-mid { margin: 16px 0; }
  .footer-legal { text-align: left; white-space: normal; }
}

/* ----------------------------------------------------------------- phone */
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }

  body { font-size: 16px; }

  .header-inner { min-height: 0; flex-wrap: wrap; gap: 12px; padding: 14px 0 12px; }
  .wordmark { font-size: 15px; }
  .main-nav { gap: 12px; justify-content: flex-start; }
  .main-nav a { font-size: 10px; letter-spacing: 0.1em; padding: 5px 0; }
  .main-nav a.btn { padding: 9px 12px; font-size: 9.5px; }

  .hero { padding-top: 34px; }
  .hero-grid { display: block; }
  .hero-title { font-size: 44px; }
  .hero-lede { max-width: none; }
  .hero-photo { width: 100%; max-width: 480px; margin: 30px 0 0; }
  .hero-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; }

  .section { padding-top: 54px; }
  .sec-title { font-size: 21px; }

  .partner-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-card { width: 100%; }

  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-cell { min-height: 74px; }

  .about-photo img { max-width: none; height: auto; aspect-ratio: 2 / 3; }

  .tl-band { display: block; min-height: 0; padding: 14px 0 16px; }
  .tl-years { margin-bottom: 10px; }
  .tl-events { grid-template-columns: minmax(0, 1fr); gap: 7px; }

  .gallery-top { width: 100%; }
  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .social-grid { grid-template-columns: minmax(0, 1fr); }
  .social-handle { font-size: 11px; }

  .site-footer { margin-top: 62px; padding-bottom: 22px; }
  .footer-grid { display: block; padding-top: 64px; }
  .footer-mid, .footer-right { border-left: 0; padding-left: 0; justify-content: flex-start; min-height: 0; }
  .footer-mid { margin: 16px 0; }
  .footer-legal { text-align: left; white-space: normal; }
  .footer-credit { margin-top: 16px; }

  .page-head { padding-top: 38px; }
  .page-title { font-size: 36px; }
  .page-intro { font-size: 17px; }
  .page-body { padding-top: 34px; }
  .facts-rail { grid-template-columns: minmax(0, 1fr); }
  .prose h2 { font-size: 22px; }
  .year-row { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* partner logo plate: guarantee legibility of supplied marks on any ground */
a img[src*="/assets/partners/"] {
  background: #f4efe6;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}
