/* CTG HOME V3: original isometric city remains the visual centerpiece.
   Only the explanatory system diagram and subtle hero adjustments are added. */
.tg-city-system{
  position:relative;isolation:isolate;overflow:hidden;padding:71px 0 83px;
  border-top:1px solid #b9dac52a;border-bottom:1px solid #b9dac529;
  background:radial-gradient(ellipse at 12% 55%,#224a4a3d,transparent 55%),
    radial-gradient(ellipse at 86% 80%,#8d623419,transparent 50%),#0c2227;
}
.tg-city-system:before{
  content:"";position:absolute;z-index:-1;inset:0;opacity:.26;pointer-events:none;
  background-image:linear-gradient(#d6dbca08 1px,transparent 1px),linear-gradient(90deg,#d6dbca08 1px,transparent 1px);
  background-size:64px 64px;mask-image:linear-gradient(90deg,transparent,#000 30%,#000 70%,transparent);
}
.tg-city-system .tg-city-system-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:1px solid #c6d6c829;font-size:10px;font-weight:700;letter-spacing:.17em;color:#e8c58e}
.tg-city-system .tg-city-system-topline span:last-child{color:#789b9f}
.tg-city-system-intro{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:end;gap:70px;padding:35px 0 23px}
.tg-city-system-intro h2{font-size:clamp(34px,4.1vw,58px);line-height:1.12;letter-spacing:-.052em;font-weight:500;color:#f0efe7}
.tg-city-system-intro h2 em{color:#eaca8e}
.tg-city-system-intro>p{max-width:395px;margin:0 0 2px;line-height:1.72;color:#b3c9c6;font-size:15px}
.tg-system-path{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:25px;position:relative}
.tg-system-path:before{content:"";position:absolute;top:45px;left:6%;right:6%;border-top:1px dashed #d2b27d66;pointer-events:none}
.tg-system-node{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0;min-height:204px;padding:18px 17px 18px;background:linear-gradient(140deg,#17353b,#10272e);
 border:1px solid #aecbc344;border-radius:12px;transition:background .23s,transform .23s,border-color .23s;z-index:1}
.tg-system-node:before{content:"";position:absolute;top:42px;left:-12px;width:11px;border-top:1px dashed #bcb083;opacity:.7}
.tg-system-node:first-child:before{display:none}
.tg-system-node:hover{background:linear-gradient(140deg,#23434b,#143139);transform:translateY(-4px);border-color:#eaca8e}
.tg-system-node .tg-node-top{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-bottom:28px}
.tg-system-node .tg-node-step{font-size:10px;letter-spacing:.09em;font-weight:700;color:#91b2b3}
.tg-system-node .tg-node-symbol{width:42px;height:42px;border:1px solid #eaca8e8a;border-radius:11px;display:grid;place-items:center;background:#c4a16e19;color:#e6cc9f;font-size:22px}
.tg-system-node strong{display:block;color:#f0ebda;font-size:19px;letter-spacing:-.035em;line-height:1.23}
.tg-system-node small{display:block;margin-top:9px;color:#abc5c2;font-size:12px;line-height:1.45}
.tg-system-node .tg-node-open{display:block;color:#eaca8e;font-size:13px;margin-top:auto;padding-top:16px}
.tg-city-system-footer{margin-top:26px;padding-top:18px;border-top:1px solid #c6d6c829;display:flex;gap:24px;justify-content:space-between;align-items:center;font-size:12px;line-height:1.6;color:#a9bcba}
.tg-city-system-footer a{color:#eaca8e;white-space:nowrap;font-weight:650}
.tg-city-system-footer a:hover{text-decoration:underline}
.hero .tg-op-hero-notice{font-size:11px;line-height:1.4}
.hero .tg-op-hero-notice:hover{background:#d4b47d18;color:#ffe3ac}
.hero .tg-building-subtitle{line-height:1.4}
.hero .scene-coordinate small{font-size:10px;line-height:1.4;color:#8daeb3}
.hero .note-search{animation-duration:8s}
.hero .note-talk{animation-duration:9s}
@media(max-width:1050px){
  .tg-city-system-intro{grid-template-columns:1fr .9fr;gap:24px}
  .tg-system-path{gap:8px}
  .tg-system-node{padding:13px 12px;min-height:190px}
  .tg-system-node strong{font-size:16px}
  .tg-system-node small{font-size:11px}
}
@media(max-width:760px){
  .tg-city-system{padding:51px 0 59px}
  .tg-city-system .tg-city-system-topline{font-size:9px;line-height:1.5;padding-bottom:14px}
  .tg-city-system .tg-city-system-topline span:last-child{display:none}
  .tg-city-system-intro{display:block;padding:26px 0 15px}
  .tg-city-system-intro h2{font-size:clamp(37px,8vw,54px)}
  .tg-city-system-intro>p{margin-top:17px;max-width:620px;font-size:13px}
  .tg-system-path{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
  .tg-system-path:before,.tg-system-node:before{display:none}
  .tg-system-node{min-height:167px;padding:13px}
  .tg-system-node .tg-node-top{margin-bottom:19px}
  .tg-system-node .tg-node-symbol{height:36px;width:36px;font-size:20px}
  .tg-system-node strong{font-size:17px}
  .tg-system-node:last-child{grid-column:1/-1;min-height:112px}
  .tg-system-node:last-child .tg-node-top{margin-bottom:8px}
  .tg-city-system-footer{display:block;margin-top:18px}
  .tg-city-system-footer a{display:inline-block;margin-top:10px}
}
@media(max-width:390px){
  .tg-system-node{min-height:162px}
  .tg-system-node strong{font-size:15px}
  .tg-system-node small{font-size:10px}
  .tg-system-node .tg-node-open{font-size:12px;padding-top:12px}
}
@media(prefers-reduced-motion:reduce){.tg-system-node,.hero .note-search,.hero .note-talk{transition:none!important;animation:none!important}}

/* On phones the isometric city is revealed before the action cards, not below them. */
@media(max-width:650px){
 .hero{display:flex;flex-direction:column;align-items:stretch;height:auto;max-height:none;min-height:0;padding:140px 20px 17px}
 .hero-copy{display:contents}
 .hero-copy .journey-eyebrow{order:1;width:100%;max-width:350px;align-self:center;position:relative;z-index:9;margin:0 0 15px}
 .hero-copy h1{order:2;width:100%;max-width:350px;align-self:center;position:relative;z-index:9;margin:0;font-size:clamp(40px,9vw,54px)}
 .hero-copy .hero-lede{order:3;width:100%;max-width:350px;align-self:center;position:relative;z-index:9;margin:19px auto 0;font-size:14px;line-height:1.65}
 .hero .universe{order:4;position:relative;align-self:center;top:auto;left:auto;right:auto;width:100%;max-width:390px;height:319px;margin:13px 0 -5px;flex-shrink:0}
 .hero .city-scene{top:18px}
 .hero .tg-op-hero-notice{order:5;align-self:center;width:min(350px,100%);justify-content:center;margin-top:2px;position:relative;z-index:9}
 .hero-copy .tg-home-entries{order:6;align-self:center;width:min(350px,100%);position:relative;z-index:9;margin-top:15px}
 .hero-copy .tg-search-link{order:7;align-self:center;width:min(350px,100%);position:relative;z-index:9;margin-top:12px}
 .hero .hero-bottom{order:8;position:relative;align-self:center;inset:auto;width:min(350px,100%);margin:18px 0 0;min-height:48px;padding:11px 0 4px}
}
@media(max-width:360px){.hero{padding-left:13px;padding-right:13px;padding-top:139px}.hero .universe{height:275px}.hero-copy .hero-lede{font-size:13px}}
