/* Hero presentation based on the approved qa/design-v3/home.css.
   Content edges now follow the shared header width at the owner’s request.
   Load after home.css. All presentation rules are scoped to these two regions. */
.header,
.hero {
  --ink: #071419;
  --surface: #0c1d23;
  --text: #f4f7f7;
  --muted: #a9b9bf;
  --line: rgba(177, 208, 213, .18);
  --accent: #9ddfd8;
  color-scheme: dark;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
.header, .header *, .header *::before, .header *::after,
.hero, .hero *, .hero *::before, .hero *::after { box-sizing: border-box; }
.header h1, .header h2, .header h3, .header p,
.hero h1, .hero h2, .hero h3, .hero p { margin: 0; }
.header a, .hero a { color: inherit; text-decoration: none; }
.header button, .hero button { font: inherit; cursor: pointer; }
.header button, .header a, .hero button, .hero a { -webkit-tap-highlight-color: transparent; }
.header button:focus-visible, .header a:focus-visible,
.hero button:focus-visible, .hero a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.header ::selection, .hero ::selection { color: var(--ink); background: var(--accent); }

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 96px;
  min-height: 0;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 40px;
  z-index: 20;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.header .wordmark {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}
.header .brand-period { color: var(--accent); margin-left: 2px; }
.header .navigation {
  position: static;
  display: flex;
  width: auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.4;
}
.header .navigation a { padding: 12px 0; position: relative; }
.header .navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.header .navigation a:hover::after { transform: scaleX(1); }
.header .navigation .nav-contact { padding: 11px 22px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 30px; }
.header .navigation .nav-contact::after { display: none; }
.header .navigation .nav-contact:hover { background: rgba(255, 255, 255, .12); }
.header .menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 780px;
  height: 100svh;
  max-height: 1100px;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}
.hero .hero-scene {
  position: absolute;
  inset: -24px;
  z-index: -4;
  transform: none;
  pointer-events: none;
}
.hero .hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.02);
  transform-origin: 66% 55%;
}
.hero .hero-artwork { position: absolute; inset: 0; overflow: hidden; transform: scale(1.02); }
.hero .hero-artwork .hero-image { transform: none; }
.hero .hero-world-light { position: absolute; max-width: none; pointer-events: none; visibility: hidden; mix-blend-mode: screen; }
.hero .lighting-ready .hero-world-light { visibility: visible; }
.hero .world-clouds { opacity: .46; }
.hero .world-cloud-bed { opacity: .34; }
.hero .world-cloud-current { opacity: .72; stroke-dasharray: 34 66; stroke-dashoffset: 8; }
.hero .world-road-flow { stroke-dasharray: 9 41; stroke-dashoffset: -7; }
.hero .world-road-halo { opacity: .8; }
.hero .world-road-core { opacity: .78; }
.motion-ready .hero .world-road-flow { animation: road-light-flow 18s linear infinite; }
.motion-ready .hero .world-clouds { animation: cloud-light-breathe 8s ease-in-out infinite alternate; }
.motion-ready .hero .world-cloud-current { animation: cloud-light-flow 24s linear infinite; }
.hero .hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 15, 23, .78) 0%, rgba(3, 15, 23, .5) 34%, rgba(3, 15, 23, .08) 70%),
    linear-gradient(0deg, #071419 0%, rgba(7, 20, 25, .12) 24%, rgba(7, 20, 25, .06) 75%, rgba(7, 20, 25, .36) 100%);
}
.hero #hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.hero .hero-content {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: calc(100% - var(--gutter)*2);
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 190px 0 140px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}
.hero .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2.4px; line-height: 1.5; }
.hero .hero-eyebrow { color: #cfdfdf; margin-bottom: 28px; }
.hero .hero-english {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(86px, 9vw, 156px);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.065em;
  margin-left: -.05em;
}
.hero .hero-english span { font-weight: 400; letter-spacing: -.075em; }
.hero h1 { font-size: clamp(23px, 2.2vw, 34px); line-height: 1.6; letter-spacing: .04em; font-weight: 600; margin-top: 34px; white-space: nowrap; }
.hero .hero-description { font-size: 15px; line-height: 2; color: #d0dfe4; margin-top: 18px; font-weight: 400; }
.hero .hero-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  font-size: 14px;
  letter-spacing: .03em;
  padding: 5px 0;
  border: 0;
  transition: none;
}
.hero .link-line { width: 42px; height: 1px; background: var(--accent); transition: width .3s; }
.hero .hero-link:hover .link-line { width: 70px; }
.hero .hero-bottom { position: absolute; left: max(var(--gutter), calc((100% - var(--content-max))/2)); right: max(var(--gutter), calc((100% - var(--content-max))/2)); bottom: 34px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.hero .scroll-cue { display: flex; align-items: center; gap: 16px; font-size: 12px; letter-spacing: 2px; color: #b9c9ce; }
.hero .scroll-track { position: relative; width: 1px; height: 36px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hero .scroll-track::after { content: ""; position: absolute; top: 0; width: 1px; height: 18px; background: #d0efea; }
.motion-ready .hero .scroll-track::after { animation: scroll-travel 2.4s ease-in-out infinite; }
.hero .motion-toggle { padding: 10px 0 10px 12px; color: #c7d2d8; border: 0; background: none; font-size: 12px; letter-spacing: .04em; min-height: 44px; visibility: hidden; }
.motion-ready .hero .motion-toggle { visibility: visible; }
.hero .motion-toggle::before { content: "Ⅱ"; font-family: Arial, sans-serif; margin-right: 10px; letter-spacing: 2px; }
.hero .motion-toggle[aria-pressed="true"]::before { content: "▷"; }
.hero .hero-side { position: absolute; right: 24px; top: 51%; writing-mode: vertical-rl; font-size: 12px; letter-spacing: 2px; color: #a8c1c8; }
.motion-paused .hero .scroll-track::after,
.motion-paused .hero .hero-world-light * { animation-play-state: paused; }

@keyframes road-light-flow { from { stroke-dashoffset: -7; } to { stroke-dashoffset: -107; } }
@keyframes cloud-light-flow { from { stroke-dashoffset: 8; } to { stroke-dashoffset: -92; } }
@keyframes cloud-light-breathe { from { opacity: .34; } to { opacity: .76; } }
@keyframes scroll-travel {
  0% { transform: translateY(-20px); }
  60%, 100% { transform: translateY(40px); }
}

@media (min-width: 1600px) {
  .hero .hero-content { padding-top: 170px; }
  .hero .hero-english { font-size: 152px; }
  .hero h1 { font-size: 32px; }
  .hero .hero-description { font-size: 17px; }
  .hero .hero-link { font-size: 16px; }
}

@media (max-width: 1100px) {
  .header .navigation { gap: 23px; }
  .header { height: 84px; }
  .hero { min-height: 720px; }
  .hero .hero-content { padding-top: 160px; }
  .hero .hero-english { font-size: 108px; }
  .hero h1 { font-size: 27px; }
  .hero .hero-description { font-size: 14px; }
}

@media (max-width: 900px) {
  .header { height: auto; min-height: 78px; flex-wrap: wrap; gap: 0 20px; padding-top: 22px; padding-bottom: 18px; }
  .header .wordmark { font-size: 23px; }
  .header .navigation { width: 100%; gap: 23px; padding-top: 22px; flex-wrap: wrap; font-size: 12px; }
  .header .navigation .nav-contact { padding: 9px 16px; }
  .menu-ready .header { height: 78px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; }
  .menu-ready .header .menu-toggle { display: block; border: 0; background: none; color: #f4f7f7; font-size: 12px; letter-spacing: 1px; padding: 12px 0 12px 15px; min-height: 44px; }
  .menu-ready .header .navigation { display: none; position: absolute; top: 78px; left: 0; right: auto; width: 100%; padding: 25px var(--gutter); background: #0a2027; border-top: 1px solid var(--line); box-shadow: 0 16px 30px #0004; }
  .menu-ready .header .navigation.is-open { display: flex; }
  .hero .hero-content { padding-top: 200px; }
  .menu-ready .hero .hero-content { padding-top: 150px; }
}

@media (max-width: 600px) {
  .header, .menu-ready .header { min-height: 72px; }
  .menu-ready .header { height: 72px; }
  .header .wordmark { font-size: 21px; letter-spacing: -.65px; }
  .menu-ready .header .navigation { top: 72px; gap: 15px 24px; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero .hero-scene { inset: -10px -20px 100px -100px; }
  .hero .hero-image { object-position: 66% 50%; transform-origin: 65% 50%; }
  .hero .hero-shade { background: linear-gradient(0deg, #071419 0%, #071419 16%, rgba(7, 20, 25, .88) 34%, rgba(7, 20, 25, .2) 65%, rgba(7, 20, 25, .3) 100%); }
  .hero .hero-content, .menu-ready .hero .hero-content { height: auto; padding: 220px 0 0; justify-content: flex-start; max-width: 100%; }
  .hero .hero-eyebrow { font-size: 12px; margin-bottom: 24px; letter-spacing: 1.8px; }
  .hero .hero-english { font-size: 86px; line-height: .85; letter-spacing: -6px; }
  .hero h1 { font-size: 20px; letter-spacing: 0; margin-top: 28px; line-height: 1.6; }
  .hero .hero-description { font-size: 13px; line-height: 1.9; margin-top: 14px; }
  .hero .hero-description br { display: none; }
  .hero .hero-link { font-size: 13px; margin-top: 22px; }
  .hero .hero-bottom { position: relative; left: auto; right: auto; bottom: auto; width: calc(100% - var(--gutter)*2); margin: 28px auto 24px; gap: 12px; }
  .hero .scroll-cue { font-size: 12px; letter-spacing: 1.5px; gap: 12px; }
  .hero .motion-toggle { font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .hero .hero-side { display: none; }
  .hero .eyebrow { font-size: 12px; letter-spacing: 1.8px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 18px; }
  .hero .hero-english { font-size: 78px; }
  .header .wordmark { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .header, .header *, .header *::before, .header *::after,
  .hero, .hero *, .hero *::before, .hero *::after { animation: none !important; transition: none !important; }
  .hero .hero-scene { transform: none !important; }
  .hero .hero-world-light { display: none; }
}

/* Preserve the final readability overrides in the original v3 cascade. */
.header .navigation, .menu-ready .header .navigation { font-size: 14px; letter-spacing: 1px; }
.hero .hero-description { font-size: 16px; }
.hero .hero-link, .hero .motion-toggle, .menu-ready .header .menu-toggle { font-size: 14px; }
@media (max-width: 600px) {
  .hero .hero-description { line-height: 1.85; text-wrap: balance; }
  .hero h1 { white-space: normal; text-wrap: balance; }
  .header .navigation, .menu-ready .header .navigation { column-gap: 22px; row-gap: 12px; }
}
