/* Homepage presentation measured from geneselabs.net.
   The existing homepage markup, content, assets and section order are retained.
   Shared navigation/footer and all product pages remain independent. */
body.af-home.af-system {
  margin:0;
  background:#fff;
}
body.af-home.af-system main {
  --home-width:1600px;
  --home-gutter:max(4%,calc((100% - var(--home-width))/2));
  /* Adjacent section padding adds up; keep the combined gap compact. */
  --home-space:56px;
  --home-ink:#111;
  --home-muted:#555;
  color:var(--home-ink);
  background:#fff;
  font-family:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif;
  font-size:18px;
  font-weight:400;
  line-height:1.6;
  letter-spacing:-.025em;
  overflow:clip;
}
.af-home main *,
.af-home main *::before,
.af-home main *::after { box-sizing:border-box; }
.af-home main :where(h2,h3,p,figure) { margin:0; }
.af-home main :where(a) { color:inherit; text-decoration:none; }
.af-home main :where(button) { font:inherit; cursor:pointer; }
.af-home main :where(img) { display:block; max-width:100%; }
.af-home main :where(em,i) { font-style:normal; }
.af-home main :where(h2,h3,p,a,button) { font-family:inherit; letter-spacing:inherit; }
.af-home main :where(h2) { font-size:42px; line-height:1.3; font-weight:400; }
.af-home main :where(p) { color:var(--home-muted); }
.af-home main :where(section) { scroll-margin-top:100px; }
.af-home main :where(a,button):focus-visible { outline:2px solid #1d6857; outline-offset:5px; }

/* Standard full-width video hero; keep the original video and text-free screen. */
.af-home main .af-hero {
  position:relative;
  height:100svh;
  min-height:620px;
  margin:0;
  overflow:hidden;
  border-radius:0;
  background:#243931;
  isolation:isolate;
}
.af-home main .af-hero-image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 46%;
}
.af-home main .hero-video-control { right:28px; bottom:24px; }

/* Restore the approved product showcase independently of the newer page layout. */
body.af-home.af-system main .af-products {
  padding:48px 0 56px!important;
  overflow:hidden;
  background:radial-gradient(ellipse 66% 90% at 88% 12%,rgba(187,222,211,.10),transparent 72%),#f8faf8;
  color:var(--af-ink);
  font-family:var(--sans);
  font-size:15px;
  font-weight:400;
  line-height:1.6;
  letter-spacing:normal;
}
body.af-home.af-system main .af-products-intro {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  max-width:1400px;
  margin:0 auto 32px!important;
  padding:0 44px 42px;
  text-align:center;
}
.af-home main .af-products-intro>div:first-child { width:100%; max-width:760px; }
body.af-home.af-system main .af-products-kicker {
  margin:0 0 18px!important;
  color:var(--af-ink)!important;
  font-size:clamp(26px,2.6vw,36px)!important;
  font-weight:700;
  line-height:1.2!important;
  letter-spacing:normal;
  text-transform:none;
}
body.af-home.af-system main .af-products-lead {
  width:min(900px,100%);
  max-width:1100px;
  margin:14px auto 20px!important;
  color:#687a77;
  font-size:clamp(18px,1.8vw,24px)!important;
  font-weight:400;
  line-height:1.5!important;
  letter-spacing:normal;
  text-transform:none;
}
body.af-home.af-system main .af-products-actions { display:flex; justify-content:center; margin:24px 0 0!important; padding:0!important; }
.af-home main .af-distribution-cta {
  width:min(390px,100%);
  text-transform:uppercase;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:transform .25s ease,background .25s ease,box-shadow .25s ease;
}
.af-home main .af-distribution-cta:hover { transform:translateY(-3px); }
.af-home main .af-distribution-cta i { color:inherit; font-size:18px; line-height:0; }
body.af-home.af-system main :is(.af-academy-copy>a,.af-publications-see-more) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  width:max-content;
  min-width:198px;
  max-width:100%;
  min-height:56px;
  padding:14px 30px;
  border:0!important;
  border-radius:999px;
  background:#050505!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:16px;
  font-weight:500;
  line-height:1.4;
  letter-spacing:0;
  text-transform:none;
  transition:background-color .2s ease;
}
body.af-home.af-system main :is(.af-academy-copy>a,.af-publications-see-more):hover {
  background:#cf231c!important;
}
.af-home main .af-product-track {
  display:flex;
  gap:22px;
  width:100%;
  min-width:0;
  padding:0 max(28px,calc((100vw - 1400px)/2)) 34px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
}
.af-home main .af-product-track::-webkit-scrollbar { display:none; }
body.af-home.af-system main .af-product-card {
  position:relative;
  display:block;
  flex:0 0 min(72vw,420px);
  min-height:380px!important;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.88);
  border-radius:9px;
  background:#f6f9f7;
  box-shadow:0 6px 24px rgba(20,60,50,.06)!important;
  scroll-snap-align:start;
  color:var(--af-ink);
  isolation:isolate;
}
.af-home main .af-product-front {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#e5ece9;
}
.af-home main .af-product-front::after {
  position:absolute;
  z-index:1;
  inset:48% 0 0;
  content:"";
  background:linear-gradient(180deg,transparent,rgba(15,32,29,.68));
}
body.af-home.af-system main .af-product-front>b {
  position:absolute;
  z-index:3;
  top:26px;
  left:50%;
  padding:10px 14px!important;
  transform:translateX(-50%);
  border-radius:999px;
  background:rgba(255,255,255,.95);
  box-shadow:0 8px 18px rgba(20,45,39,.13);
  color:#233d37;
  font-size:11px!important;
  font-weight:700;
  line-height:1.6;
  letter-spacing:.1em!important;
  white-space:nowrap;
}
.af-home main .af-product-front>img {
  width:100%;
  height:100%;
  max-width:none;
  margin:0;
  padding:0;
  object-fit:cover;
  object-position:center;
  transition:transform .75s cubic-bezier(.2,.7,.2,1);
}
.af-home main .af-product-card:hover .af-product-front>img { transform:scale(1.045); }
.af-home main .af-product-front-title { position:absolute; z-index:2; right:22px; bottom:27px; left:22px; color:#fff; text-align:center; }
.af-home main .af-product-front-title strong { display:block; margin:0; color:#fff; font-size:27px; font-weight:500; line-height:1.6; letter-spacing:-.045em; }
.af-home main :is(.af-product-flip--re2o,.af-product-flip--hutox) .af-product-front { background:#fff; }
.af-home main :is(.af-product-flip--re2o,.af-product-flip--hutox) .af-product-front>img { height:76%; margin:11% auto 0; object-fit:contain; }
.af-home main .af-product-flip--hutox .af-product-front>img { width:82%; background:#fff; }

/* The academy keeps its original copy first, followed by its own photograph. */
.af-home main .af-academy {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:9%;
  align-items:center;
  width:min(var(--home-width),92%);
  margin:auto;
  padding:var(--home-space) 0;
  color:var(--home-ink);
  background:#fff;
}
.af-home main .af-academy-copy>p:first-child { font-size:16px; color:#666; }
.af-home main .af-academy-copy h2 { margin:22px 0; font-size:50px; line-height:1.15; font-weight:400; }
.af-home main .af-academy-copy h2 em { color:inherit; }
.af-home main .af-academy-copy>p:not(:first-child) { max-width:44ch; font-size:20px; line-height:1.7; color:#333; }
.af-home main .af-academy-copy>a { margin-top:38px; }
.af-home main .af-academy>img {
  width:100%;
  height:auto;
  aspect-ratio:1.1;
  object-fit:cover;
  border-radius:150px 20px 20px;
}

/* Fill the section width with evenly sized portrait columns. */
body.af-home.af-system main .af-experts {
  padding:var(--home-space) var(--home-gutter)!important;
  background:#fafafa;
}
.af-home main .af-experts-heading { width:100%; max-width:none; margin:0 auto 32px; }
.af-home main .af-experts-heading>a { display:inline-flex; align-items:center; gap:20px; font-size:32px; line-height:1.3; font-weight:400; }
.af-home main .af-experts-heading>a span { font-size:26px; }
.af-home main .af-expert-rail {
  position:relative;
  display:flex;
  gap:32px;
  width:100%;
  max-width:none;
  margin-inline:auto;
  overflow-x:auto;
  padding:0 0 16px;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:#222 #e5e5e5;
}
.af-home main .af-expert-card { flex:0 0 calc((100% - 128px)/5); min-width:0; scroll-snap-align:start; }
.af-home main .af-expert-portrait { display:block; overflow:hidden; border-radius:64px 16px 16px; background:#f0f0ed; }
.af-home main .af-expert-portrait>img { width:100%; aspect-ratio:4 / 5; object-fit:cover; object-position:center top; transition:transform .6s ease; }
.af-home main .af-expert-portrait:hover>img { transform:scale(1.025); }
.af-home main .af-expert-role { display:block; margin:12px 0 5px; color:#666; font-size:11px; line-height:1.5; }
.af-home main .af-expert-card h3 { margin:0; color:var(--home-ink); font-size:18px; font-weight:400; line-height:1.3; }
.af-home main .af-expert-location { margin:5px 0 8px; color:#666; font-size:12px; line-height:1.5; }
.af-home main .af-expert-card>p:last-child { max-width:39ch; color:#333; font-size:13px; line-height:1.55; }
.af-home main .af-expert-navigation { display:flex; align-items:center; justify-content:flex-end; gap:22px; width:100%; max-width:none; margin:16px auto 0; }
.af-home main .af-expert-navigation button { display:grid; place-items:center; width:48px; height:48px; border:1px solid #ccc; border-radius:50%; background:transparent; color:#111; font-size:22px; }
.af-home main .af-expert-navigation button:hover { background:#111; border-color:#111; color:#fff; }
.af-home main .af-expert-dots { display:flex; gap:8px; }
.af-home main .af-expert-dots i { display:block; width:5px; height:5px; border-radius:50%; background:#ccc; }
.af-home main .af-expert-dots i.is-active { background:#111; }

/* Every publication and existing action remains in its original order. */
body.af-home.af-system main .af-news {
  padding:var(--home-space) var(--home-gutter)!important;
  background:#fff;
}
.af-home main .af-publications-header { display:grid; grid-template-columns:1fr auto; align-items:end; gap:14px 36px; margin:0 0 60px; }
.af-home main .af-publications-header>p { grid-column:1/-1; color:#666; font-size:16px; }
body.af-home.af-system main .af-publications-header h2 { font-size:42px; line-height:1.3; font-weight:400; }
.af-home main .af-publications-header h2 em { font-style:normal; }
.af-home main .af-publications-header>a { margin-bottom:5px; padding-bottom:5px; font-size:16px; line-height:1.5; border-bottom:1px solid #bbb; }
.af-home main .af-publications-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; }
.af-home main .af-publication-tile { display:flex; flex-direction:column; min-width:0; color:var(--home-ink); }
/* Give the complete page more room without zoom-cropping its edges. */
.af-home main .af-publication-thumb { display:grid; place-items:center; aspect-ratio:1.05; padding:12px; overflow:hidden; border-radius:80px 20px 20px; background:#f4f4f1; }
.af-home main .af-publication-thumb>img { display:block; width:100%; height:100%; min-width:0; min-height:0; max-width:100%; max-height:100%; object-fit:contain; object-position:center; }
.af-home main .af-publication-tile-copy { display:flex; flex:1; flex-direction:column; align-items:flex-start; padding-top:24px; }
.af-home main .af-publication-tile-copy small { display:block; color:#666; font-size:12px; line-height:1.6; }
.af-home main .af-publication-tile-copy strong { display:block; margin:12px 0 20px; color:var(--home-ink); font-size:20px; font-weight:400; line-height:1.4; }
.af-home main .af-publication-tile-copy em { margin-top:auto; color:#444; font-size:14px; line-height:1.5; font-style:normal; }
.af-home main .af-publication-tile:hover strong { text-decoration:underline; text-underline-offset:5px; }
body.af-home.af-system main .af-news .af-publications-see-more { display:flex; margin:52px auto 0; }

/* Existing map, route geometry, captions and four regions — no new locations. */
body.af-home.af-system main .af-global-network {
  padding:var(--home-space) var(--home-gutter)!important;
  background:#f8f8f6!important;
  margin:0!important;
}
body.af-home.af-system main .af-network-layout { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr); gap:7%; align-items:center; }
body.af-home.af-system main .af-network-copy h2 { max-width:19ch; margin:0 0 24px; color:var(--home-ink); font-size:42px; line-height:1.3; font-weight:400; }
body.af-home.af-system main .af-network-copy p { max-width:44ch; color:#444; font-size:18px; line-height:1.7; }
body.af-home.af-system main .af-network-map { position:relative; isolation:isolate; aspect-ratio:2 / 1; min-height:0; background:transparent; }
.af-home main .af-network-dot-map { display:block; }
.af-home main .af-network-routes { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.af-home main .af-network-route { fill:none; stroke:#1d6857; stroke-width:1.7; stroke-linecap:round; stroke-dasharray:3 10; opacity:.6; animation:home-route-travel 12s linear infinite; }
.af-home main .af-network-routes marker path { fill:#1d6857; }
.af-home main .af-network-pin { position:absolute; z-index:2; width:9px; height:9px; border:2px solid #fff; border-radius:50%; background:#1d6857; transform:translate(-50%,-50%); box-shadow:0 0 0 3px #1d685726; }
.af-home main .af-network-pin--1 { top:31%; left:21%; }
.af-home main .af-network-pin--2 { top:48%; left:29%; }
.af-home main .af-network-pin--3 { top:39%; left:47%; }
.af-home main .af-network-pin--4 { top:47%; left:54%; }
.af-home main .af-network-pin--5 { top:40%; left:62%; }
.af-home main .af-network-pin--6 { top:48%; left:72%; }
.af-home main .af-network-pin--7 { top:63%; left:76%; }
.af-home main .af-network-pin--8 { top:70%; left:35%; }
.af-home main .af-network-pin--9 { top:73%; left:84%; }
.af-home main .af-network-caption { margin:38px 0 0; color:#666; font-size:13px; line-height:1.6; }
.af-home main .af-network-caption a { color:#333; text-decoration:underline; text-underline-offset:3px; }
body.af-home.af-system main .af-network-regions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; margin:34px 0 0; padding-top:28px; border-top:1px solid #d9d9d5; }
.af-home main .af-network-regions>div { display:grid; gap:8px; }
.af-home main .af-network-regions strong { color:#111; font-size:18px; font-weight:400; line-height:1.4; }
.af-home main .af-network-regions span { color:#666; font-size:15px; line-height:1.5; }
@keyframes home-route-travel { to { stroke-dashoffset:-130; } }

/* The four original conference photographs close the page. */
body.af-home.af-system main .af-conferences { padding:var(--home-space) var(--home-gutter)!important; background:#fff; }
body.af-home.af-system main .af-conferences h2 { margin:0 0 60px; font-size:42px; line-height:1.3; font-weight:400; }
body.af-home.af-system main .af-conference-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; }
.af-home main .af-conference-gallery img { width:100%; height:auto; aspect-ratio:3 / 4; object-fit:cover; object-position:center; border-radius:80px 20px 20px; }

@media(min-width:981px) {
  body.af-home.af-system main .af-products-intro { max-width:none; padding-inline:max(44px,calc((100vw - 1540px)/2 + 44px)); }
  .af-home main .af-products-intro>div:first-child { max-width:none; }
  body.af-home.af-system main .af-products-lead { max-width:none; }
  .af-home main .af-product-track { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(16px,1.15vw,22px); width:100%; max-width:none; margin:0; padding:0 clamp(18px,1.5vw,30px) 18px; overflow:visible; }
  body.af-home.af-system main .af-product-card { width:100%; height:360px; flex:initial; }
  body.af-home.af-system main .af-product-front>b { top:18px; }
  .af-home main .af-product-front-title { right:13px; bottom:18px; left:13px; }
  .af-home main .af-product-front-title strong { font-size:21px; }
}
@media(max-width:900px) {
  body.af-home.af-system main .af-product-card { flex-basis:min(75vw,310px)!important; min-height:360px!important; }
}
@media(max-width:1400px) {
  body.af-home.af-system main { --home-space:48px; font-size:16px; }
  body.af-home.af-system main :is(.af-experts-heading>a,.af-publications-header h2,.af-network-copy h2,.af-conferences h2) { font-size:28px!important; }
  body.af-home.af-system main :is(.af-academy-copy>a,.af-publications-see-more) { min-height:48px; }
  .af-home main .af-academy { gap:8%; }
  .af-home main .af-academy-copy h2 { font-size:38px; }
  .af-home main .af-academy-copy>p:not(:first-child) { font-size:18px; }
  .af-home main .af-publication-thumb { border-top-left-radius:64px; }
  .af-home main .af-publication-tile-copy strong { font-size:18px; }
  body.af-home.af-system main .af-network-copy p { font-size:16px; line-height:1.75; }
}
@media(max-width:1200px) {
  .af-home main .af-expert-card { flex-basis:calc((100% - 96px)/4); }
}
@media(max-width:980px) {
  body.af-home.af-system main { --home-space:40px; }
  body.af-home.af-system main .af-products-intro { padding-inline:26px; }
  .af-home main .af-academy { grid-template-columns:1fr; gap:44px; }
  .af-home main .af-academy-copy>p:not(:first-child) { max-width:54ch; }
  .af-home main .af-academy>img { aspect-ratio:1.75; border-top-left-radius:100px; }
  .af-home main .af-expert-card { flex-basis:calc((100% - 64px)/3); }
  .af-home main .af-publications-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:44px 28px; }
  body.af-home.af-system main .af-network-layout { grid-template-columns:1fr; gap:36px; }
  body.af-home.af-system main .af-network-copy h2 { max-width:28ch; }
  body.af-home.af-system main .af-network-copy p { max-width:62ch; }
  body.af-home.af-system main .af-conference-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:860px) {
  .af-home main .af-hero-image { object-position:50% 50%; }
}
@media(max-width:760px) {
  .af-home main .af-expert-card { flex-basis:calc((100% - 32px)/2); }
}
@media(max-width:600px) {
  body.af-home.af-system main { --home-gutter:20px; --home-space:32px; }
  .af-home main .af-hero { min-height:590px; }
  .af-home main .hero-video-control { right:18px; bottom:20px; }
  body.af-home.af-system main .af-products { padding:36px 0 40px!important; }
  body.af-home.af-system main .af-products-intro { gap:24px; }
  .af-home main .af-products-actions { width:100%; }
  .af-home main .af-distribution-cta { width:100%; min-width:0; }
  body.af-home.af-system main :is(.af-experts-heading>a,.af-publications-header h2,.af-network-copy h2,.af-conferences h2) { font-size:26px!important; }
  .af-home main .af-academy { width:calc(100% - 40px); }
  .af-home main .af-academy-copy h2 { font-size:34px; }
  .af-home main .af-academy-copy>p:not(:first-child) { font-size:16px; }
  .af-home main .af-academy-copy>a { padding-inline:24px; font-size:15px; }
  .af-home main .af-academy>img { aspect-ratio:1.35; border-radius:80px 20px 20px; }
  .af-home main .af-experts-heading { margin-bottom:28px; }
  .af-home main :is(.af-experts-heading,.af-expert-rail,.af-expert-navigation) { width:100%; }
  .af-home main .af-expert-rail { gap:16px; }
  .af-home main .af-expert-card { flex-basis:min(176px,70%); }
  .af-home main .af-expert-portrait { border-top-left-radius:52px; }
  .af-home main .af-publications-header { grid-template-columns:1fr; gap:14px; margin-bottom:38px; }
  .af-home main .af-publications-header>a { justify-self:start; margin-top:8px; }
  .af-home main .af-publications-grid { grid-template-columns:1fr; gap:42px; }
  .af-home main .af-publication-thumb { border-radius:80px 20px 20px; }
  .af-home main .af-publication-tile-copy { padding-top:20px; }
  .af-home main .af-publication-tile-copy strong { font-size:20px; margin-bottom:14px; }
  body.af-home.af-system main .af-network-regions { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; margin-top:26px; }
  body.af-home.af-system main .af-network-regions>div { padding:0; }
  .af-home main .af-network-regions strong { font-size:17px; }
  .af-home main .af-network-regions span { font-size:14px; }
  .af-home main .af-network-caption { margin-top:22px; }
  body.af-home.af-system main .af-conferences h2 { margin-bottom:38px; }
  body.af-home.af-system main .af-conference-gallery { gap:16px; }
  .af-home main .af-conference-gallery img { border-radius:48px 16px 16px; }
}
@media(prefers-reduced-motion:reduce) {
  .af-home main *, .af-home main *::before, .af-home main *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Only visible when the homepage clip needs an explicit play action. */
.af-home main .af-hero-play {
  position:absolute;
  left:50%;
  bottom:32px;
  transform:translateX(-50%);
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 20px;
  border:1px solid rgba(255,255,255,.6);
  border-radius:999px;
  background:rgba(14,34,31,.78);
  color:#fff;
  font:500 13px Inter,Arial,sans-serif;
  cursor:pointer;
  backdrop-filter:blur(12px);
}
.af-home main .af-hero-play[hidden] { display:none; }
