/* Ugwoke Enyim Limited: shared stylesheet.
   Panel refinement pass, 2026-11-27: no green fields; the green lives only
   in the company mark itself and in small green numerals. The site is carried
   by warm ivory, ink charcoal, antique gold and a deepened stone brown,
   with hairline rules, wide spacing and letterspaced small caps. */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Georgia, 'Times New Roman', serif; color: #23201b; background: #fdfcf9; line-height: 1.65; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
a { color: #75552F; transition: all 180ms ease; }
a:hover { color: #23201b; }
::selection { background: #C9A227; color: #171410; }
:focus-visible { outline: 2px solid #75552F; outline-offset: 3px; }

/* Top strip */
.topbar { background: #211d16; color: #d8c690; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; padding: 9px 0; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Masthead: mark as image, name as live type */
header.masthead { background: #fdfcf9; border-bottom: 1px solid #e3dcc4; box-shadow: 0 1px 0 #C9A227; }
header.masthead .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 68px; width: auto; display: block; }
.brand-name { display: block; line-height: 1.3; }
.brand-name .n1 { display: block; font-size: 19px; letter-spacing: 3px; color: #1F2937; }
.brand-name .n2 { display: block; font-size: 9.5px; letter-spacing: 6px; color: #75552F; margin-top: 3px; }
nav a { color: #3a352b; text-decoration: none; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-left: 34px; padding: 10px 0; transition: all 180ms ease; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: #75552F; }
nav a.current { color: #75552F; border-bottom: 2px solid #C9A227; }

/* Hero and page heads */
.hero { background: #f7f3e8; border-bottom: 1px solid #e3dcc4; padding: 96px 0 88px; text-align: center; }
.hero .kicker { color: #75552F; letter-spacing: 3px; text-indent: 3px; font-size: 13px; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: 46px; line-height: 1.22; color: #23201b; max-width: 840px; margin: 0 auto 22px; font-weight: normal; }
.hero p { font-size: 18px; color: #55503f; max-width: 680px; margin: 0 auto 36px; }
.pagehead { background: #f7f3e8; border-bottom: 1px solid #e3dcc4; padding: 64px 0 56px; text-align: center; }
.pagehead .kicker { color: #75552F; letter-spacing: 3px; text-indent: 3px; font-size: 13px; text-transform: uppercase; margin-bottom: 16px; }
.pagehead h1 { font-size: 37px; line-height: 1.22; color: #23201b; font-weight: normal; }
.pagehead p { font-size: 17px; color: #55503f; max-width: 680px; margin: 16px auto 0; }

/* Buttons: ink primary, outline secondary, no gold fill */
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; background: #23201b; color: #f3ecd9; padding: 15px 38px; text-decoration: none; letter-spacing: 3px; text-indent: 3px; text-transform: uppercase; font-size: 13px; border: 1px solid #23201b; transition: all 180ms ease; }
.btn.gold { background: transparent; border: 1px solid #75552F; color: #23201b; }
.btn:hover { background: #171410; border-color: #171410; color: #fff; }
.btn.gold:hover { background: transparent; border-color: #23201b; color: #23201b; }

/* Bands and body copy */
.band { padding: 76px 0; }
.band.tight { padding-top: 36px; }
.band.flush { padding-top: 0; }
.band h2 { font-size: 30px; line-height: 1.28; color: #23201b; font-weight: normal; text-align: center; margin-bottom: 8px; }
.band .rule { width: 56px; height: 2px; background: #C9A227; margin: 14px auto 26px; }
.about p.lede { max-width: 780px; margin: 0 auto; text-align: center; font-size: 18px; color: #454136; }
.morelink { text-align: center; margin-top: 22px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { text-align: left; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose .rule { margin: 14px 0 24px; }
.prose p { font-size: 17px; color: #454136; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose a:hover { color: #23201b; text-decoration: underline; }

/* Open editorial blocks (formerly boxed cards) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { border-top: 1px solid #C9A227; padding: 26px 4px 0; }
.card .num { display: block; color: #14532D; font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.card h3 { font-size: 20px; line-height: 1.35; color: #23201b; margin-bottom: 12px; font-weight: normal; }
.card p { font-size: 15px; color: #55503f; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid #C9A227; padding-bottom: 2px; transition: all 180ms ease; }
.card a.more:hover { color: #23201b; border-bottom-color: #23201b; }

/* Programme sections: open blocks, gold top rule, green numerals */
.programme { max-width: 860px; margin: 0 auto 52px; border-top: 1px solid #C9A227; padding: 30px 0 0; }
.programme:last-child { margin-bottom: 0; }
.programme .num { display: block; color: #14532D; font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.programme h2 { text-align: left; font-size: 26px; line-height: 1.28; margin-bottom: 6px; }
.programme .rule { margin: 14px 0 24px; }
.programme p { font-size: 16px; color: #454136; margin-bottom: 14px; }
.programme p:last-child { margin-bottom: 0; }
.programme a:hover { color: #23201b; text-decoration: underline; }
.programme figure.shot { margin: 24px 0 8px; }
.programme figure.shot img { display: block; width: 100%; max-width: 320px; height: auto; border: 1px solid #e3dcc4; }
.programme figure.shot figcaption { font-size: 13px; color: #55503f; margin-top: 10px; }

/* Fact table (About and Contact pages) */
.facts { max-width: 780px; margin: 0 auto; border: 1px solid #e3dcc4; }
.facts .row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid #ece5cd; }
.facts .row:last-child { border-bottom: none; }
.facts .k { background: #f7f3e8; color: #75552F; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; padding: 18px 22px; }
.facts .v { font-size: 16px; color: #454136; padding: 18px 22px; }
.btnrow { text-align: center; margin-top: 28px; }

/* Credentials band: a single centred line */
.cred { background: #211d16; color: #efe9d6; }
.cred .credline { text-align: center; font-size: 18px; letter-spacing: 2px; text-indent: 2px; color: #efe9d6; }

/* Contact band (homepage) */
.contact { background: #f7f3e8; text-align: center; }
.contact p { font-size: 17px; color: #454136; margin-bottom: 6px; }
.contact .btn { margin-top: 20px; }

/* Footer */
footer { background: #171410; color: #a89e83; font-size: 14px; padding: 38px 0; text-align: center; }
footer .fname { color: #efe9d6; letter-spacing: 3px; text-indent: 3px; }
footer .fline { margin-top: 8px; }
footer nav { margin-top: 14px; }
footer nav a { color: #a89e83; font-size: 12px; letter-spacing: 2px; margin: 0 12px; padding: 8px 4px; }
footer nav a:hover { color: #C9A227; }
footer a { color: #a89e83; }

/* Responsive */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 54px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
  .pagehead h1 { font-size: 30px; }
  .band { padding: 52px 0; }
  header.masthead .wrap { justify-content: center; text-align: center; }
  header.masthead nav { display: flex; flex-wrap: wrap; justify-content: center; }
  nav a { margin: 0 12px; }
  .brand img { height: 56px; }
  .programme { padding: 26px 0 0; }
}

@media (max-width: 560px) {
  .facts .row { grid-template-columns: 1fr; }
  .facts .k { padding: 14px 22px 2px; }
  .facts .v { padding: 2px 22px 14px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .topbar { letter-spacing: 1.6px; }
}

/* ------------------------------------------------------------------
   Motion layer (2026-11-27). Restrained, institutional movement only:
   a short fade for the masthead, a staggered rise for the hero and
   page heads on load, and a single gentle reveal as sections scroll
   into view. Every hidden pre-reveal state below is scoped under
   html.js, a class added by an inline script in each page head, and
   the .rv state is added by assets/site.js itself. With JavaScript
   off or failed, no element is ever hidden. assets/site.js also arms
   a 2.5 second safety timer that adds the html.failsafe class and
   forces everything visible if the reveal system fails to start.
   ------------------------------------------------------------------ */

@keyframes uel-mast-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes uel-rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Masthead: a plain fade, no movement */
html.js header.masthead { animation: uel-mast-in 400ms ease-out both; }

/* Hero and page head: staggered fade and rise on load */
html.js .hero .kicker,
html.js .pagehead .kicker { animation: uel-rise-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 60ms both; }
html.js .hero h1,
html.js .pagehead h1 { animation: uel-rise-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 150ms both; }
html.js .hero p,
html.js .pagehead p { animation: uel-rise-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 240ms both; }
html.js .hero .actions { animation: uel-rise-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 330ms both; }

/* Scroll reveal: fade and rise once, as a section enters the viewport */
html.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.js .rv.in { opacity: 1; transform: translateY(0); }

/* Gold rules draw themselves as their section reveals */
.rule { transform-origin: center; }
.prose .rule, .programme .rule { transform-origin: left center; }
html.js .rv .rule { transform: scaleX(0); }
html.js .rv.in .rule {
  transform: scaleX(1);
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1) 100ms;
}

/* Programme blocks: a subtle lift on hover */
.card, .programme { transition: transform 220ms ease, box-shadow 220ms ease; }
.card:hover, .programme:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(35, 32, 27, 0.07);
}

/* Fail-safe: if assets/site.js flags a failure, everything is visible */
html.failsafe header.masthead,
html.failsafe .hero .kicker, html.failsafe .hero h1,
html.failsafe .hero p, html.failsafe .hero .actions,
html.failsafe .pagehead .kicker, html.failsafe .pagehead h1,
html.failsafe .pagehead p, html.failsafe .rv {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
html.failsafe .rv .rule { transform: none !important; transition: none !important; }

/* Reduced motion: no animation, no transitions, everything visible */
@media (prefers-reduced-motion: reduce) {
  html.js header.masthead,
  html.js .hero .kicker, html.js .hero h1,
  html.js .hero p, html.js .hero .actions,
  html.js .pagehead .kicker, html.js .pagehead h1,
  html.js .pagehead p, html.js .rv {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  html.js .rv .rule { transform: none !important; transition: none !important; }
  .card, .programme { transition: none !important; }
  .card:hover, .programme:hover { transform: none; box-shadow: none; }
}

/* Print: reveal states are forced visible */
@media print {
  html.js header.masthead,
  html.js .hero .kicker, html.js .hero h1,
  html.js .hero p, html.js .hero .actions,
  html.js .pagehead .kicker, html.js .pagehead h1,
  html.js .pagehead p, html.js .rv {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  html.js .rv .rule { transform: none !important; }
}

