/* Homepage-only styles. Shared header/footer styling lives in shared.css. */
:root {
  --home-blue: #2b52b4;
  --home-ink: #121317;
  --home-muted: #6f7279;
  --home-paper: #f5f2ed;
  --home-white: #fff;
  --home-line: #ded9d2;
}

html { scroll-padding-top: 100px; }
body { background: var(--home-paper); color: var(--home-ink); }
main { overflow: clip; }
.home-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.home-section { padding: clamp(68px, 8vw, 112px) 0; }
.home-eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--home-blue); font-size: .76rem; font-weight: 900;
  letter-spacing: .14em; line-height: 1.5; text-transform: uppercase;
}
.home-eyebrow > span { width: 25px; height: 2px; background: currentColor; }
.home-section-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 36px;
  margin-bottom: 42px;
}
.home-section-heading h2 {
  max-width: 700px; margin: 0; font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 800; letter-spacing: -.055em; line-height: 1.04;
}
.home-section-heading h2 span { color: var(--home-blue); }
.home-section-heading__side {
  max-width: 430px; margin: 0; color: var(--home-muted);
  font-size: .98rem; line-height: 1.85;
}
.home-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 14px 21px; border: 1px solid transparent;
  border-radius: 999px; font-size: .9rem; font-weight: 800; text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.home-button:hover { transform: translateY(-2px); }
.home-button--primary { background: var(--home-blue); color: #fff; }
.home-button--primary:hover { background: #1e3f8f; }
.home-button--secondary { border-color: #cfc8c0; color: var(--home-ink); background: rgba(255,255,255,.5); }
.home-button--secondary:hover { border-color: var(--home-blue); color: var(--home-blue); }
.home-button--light { background: #fff; color: var(--home-ink); }
.home-button--light:hover { background: #f6dfe0; }

/* Hero */
.home-hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: min(740px, calc(100svh - 82px)); padding: 78px 0 86px;
  background:
    radial-gradient(circle at 80% 22%, rgba(43,82,180,.10), transparent 28%),
    linear-gradient(125deg, #fff 0%, #f5f2ed 68%, #f1e9e2 100%);
}
.home-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(40px, 7vw, 92px); }
.home-hero__content { position: relative; z-index: 2; }
.home-hero__content h1 {
  margin: 0 0 24px; max-width: 760px; font-size: clamp(3.15rem, 6.2vw, 6.15rem);
  font-weight: 900; letter-spacing: -.075em; line-height: .98;
}
.home-hero__content h1 span { color: var(--home-blue); }
.home-hero__intro { max-width: 590px; margin: 0; color: #55575e; font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.9; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-hero__note { display: flex; align-items: center; gap: 12px; max-width: 420px; margin-top: 36px; color: var(--home-muted); font-size: .84rem; line-height: 1.6; }
.home-hero__note-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: #e1f5fc; color: var(--home-blue); }
/* Hero visual: generated exhibition pavilion image */
.home-hero-art {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 28px;
  background: #111a2a;
  box-shadow: 0 28px 75px rgba(26, 22, 22, .18);
}
.home-hero-art__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

/* About */
.home-about { background: #fff; }
.home-about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.home-about__copy { padding: 28px; border: 1px solid var(--home-line); border-radius: 22px; background: #fcfaf7; }
.home-about__copy h3 { margin: 0 0 18px; font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -.035em; line-height: 1.25; }
.home-about__copy p { margin: 0 0 16px; color: var(--home-muted); font-size: .94rem; line-height: 1.85; }
.home-text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--home-blue); font-weight: 800; font-size: .9rem; text-decoration: none; }
.home-text-link i { transition: transform .2s ease; }
.home-text-link:hover i { transform: translateX(4px); }
.home-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-principle { display: flex; gap: 14px; padding: 20px 16px; border-bottom: 1px solid var(--home-line); }
.home-principle__icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; background: #e1f5fc; color: var(--home-blue); font-size: 1.1rem; }
.home-principle h3 { margin: 2px 0 7px; font-size: 1rem; }
.home-principle p { margin: 0; color: var(--home-muted); font-size: .84rem; line-height: 1.75; }

/* Exhibitions */
.home-events { background: var(--home-paper); }
.home-events__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-event-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 340px; overflow: hidden; padding: 23px; border-radius: 22px; color: #fff;
  background: #25262c; box-shadow: 0 12px 28px rgba(18,19,23,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-event-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(18,19,23,.16); }
.home-event-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .95; background: linear-gradient(155deg, transparent 5%, rgba(0,0,0,.72) 100%); }
.home-event-card::after { content: ""; position: absolute; z-index: -2; width: 220px; height: 220px; top: 45px; right: -90px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.025); }
.home-event-card--beauty { background: linear-gradient(145deg, #173b7a, #2b52b4); }
.home-event-card--textile { background: linear-gradient(145deg, #123568, #2487bd); }
.home-event-card--technology { background: linear-gradient(145deg, #151d2b, #168eb6); }
.home-event-card--energy { background: linear-gradient(145deg, #102750, #31bceb); }
.home-event-card__number { align-self: flex-start; color: rgba(255,255,255,.75); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.home-event-card__tag { align-self: flex-start; margin-top: auto; margin-bottom: 14px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.home-event-card h3 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.035em; line-height: 1.15; }
.home-event-card p { margin: 0; color: rgba(255,255,255,.8); font-size: .82rem; line-height: 1.6; }
.home-event-card__arrow { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: .8rem; }
.home-section-footnote { margin: 18px 0 0; color: var(--home-muted); font-size: .76rem; }

/* Industries */
.home-industries { background: #fff; }
.home-industries__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.home-industry { min-height: 155px; padding: 21px; border: 1px solid var(--home-line); border-radius: 18px; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.home-industry:hover { transform: translateY(-4px); border-color: rgba(43,82,180,.5); box-shadow: 0 12px 28px rgba(18,19,23,.06); }
.home-industry span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 13px; background: #e1f5fc; color: var(--home-blue); font-size: 1.05rem; }
.home-industry h3 { margin: 0; font-size: .91rem; line-height: 1.45; }

/* Services */
.home-services { background: #f5f2ed; }
.home-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-service { min-height: 245px; padding: 24px; border: 1px solid var(--home-line); border-radius: 20px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.home-service:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(18,19,23,.07); }
.home-service__number { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--home-blue); color: #fff; font-size: .8rem; font-weight: 900; }
.home-service h3 { margin: 28px 0 10px; font-size: 1.08rem; letter-spacing: -.025em; line-height: 1.3; }
.home-service p { margin: 0; color: var(--home-muted); font-size: .87rem; line-height: 1.8; }
.home-services__more { margin-top: 25px; }

/* Closing call to action */
.home-quote { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 112px) 0; background: #191a20; color: #fff; }
.home-quote__inner { position: relative; z-index: 1; }
.home-quote .home-eyebrow { color: #32b9e8; }
.home-quote blockquote { max-width: 900px; margin: 0 0 30px; font-size: clamp(2rem, 4.5vw, 4.4rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.12; }
.home-quote__watermark { position: absolute; right: 3%; bottom: -100px; color: rgba(255,255,255,.035); font-size: clamp(10rem, 25vw, 25rem); font-weight: 900; letter-spacing: -.1em; line-height: 1; pointer-events: none; }

/* Scroll reveal; content remains visible if JS is unavailable. */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .home-hero { min-height: auto; }
  .home-hero__grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .home-hero-art { min-height: 420px; }
  .home-events__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-industries__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-about__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .home-container { width: min(100% - 28px, 1180px); }
  .home-hero { padding: 60px 0; }
  .home-hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .home-hero__content h1 { font-size: clamp(3rem, 12vw, 4.8rem); }
  .home-hero-art { min-height: 360px; border-radius: 24px; }
  .home-section-heading { display: block; margin-bottom: 30px; }
  .home-section-heading__side { margin-top: 17px; }
  .home-principles { grid-template-columns: 1fr; }
  .home-events__grid { gap: 12px; }
  .home-event-card { min-height: 300px; padding: 18px; }
  .home-industries__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-service { padding: 20px; }
}
@media (max-width: 430px) {
  .home-events__grid, .home-industries__grid, .home-services__grid { grid-template-columns: 1fr; }
  .home-event-card { min-height: 270px; }
  .home-industry { min-height: auto; display: flex; align-items: center; gap: 15px; }
  .home-industry span { flex: 0 0 42px; margin: 0; }
  .home-service { min-height: auto; }
  .home-service h3 { margin-top: 20px; }
  .home-hero__actions { align-items: stretch; flex-direction: column; }
  .home-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero *, .home-section *, .home-quote * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
