/* V4 Home Page — Asymmetric Editorial Design */
/* Loaded only in index.html */

/* ─── Base Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
button { cursor: pointer; }

/* ─── Design Tokens ─── */
:root {
  --ink:         #1A2744;
  --ink-2:       #2E3F63;
  --paper:       #FFFFFF;
  --paper-2:     #ece6db;
  --muted:       #8A96AF;
  --accent:      #B83060;
  --accent-deep: #96244E;
  --accent-soft: #F5E6ED;
  --accent-2:    #1565C0;
  --navy:        #1565C0;
  --display:     "Shippori Mincho B1", "Shippori Mincho", Georgia, serif;
  --ui:          "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  --mono:        "JetBrains Mono", ui-monospace, monospace;
}

/* ─── Page ─── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  background-image: radial-gradient(rgba(26,39,68,.06) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

/* ─── Header ─── */
.v4-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 68px;
  background: var(--paper);
  border-bottom: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.v4-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.v4-logo__img {
  height: 42px;
  width: auto;
  display: block;
}

/* ─── Horizontal Nav ─── */
.v4-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.v4-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.v4-nav__list li a {
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 5px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.v4-nav__list li a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.v4-nav__cta {
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s;
  letter-spacing: .04em;
}
.v4-nav__cta:hover { background: var(--accent-deep); }

/* ─── Dropdown ─── */
.v4-nav__list > li { position: relative; }
.v4-nav__list > li.has-dropdown > a::after {
  content: " ▾";
  font-size: 9px;
  opacity: .6;
  vertical-align: middle;
}
.v4-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.08);
  border-top: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 200px;
  padding: 4px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 200;
  list-style: none;
}
/* ギャップを埋める透明ブリッジ */
.v4-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0; right: 0;
  height: 12px;
}
/* JS .is-open で管理（即時表示・遅延非表示） */
.v4-nav__list > li.is-open .v4-dropdown,
.v4-nav__list > li:hover .v4-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .12s 0s, transform .12s 0s;
}
.v4-dropdown li a {
  display: block;
  padding: 7px 16px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: background .1s, color .1s;
}
.v4-dropdown li:last-child a { border-bottom: none; }
.v4-dropdown li a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ─── Hero ─── */
.v4-hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}
.v4-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.v4-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,.6) 0%,
    rgba(0,0,0,.25) 50%,
    rgba(0,0,0,.4) 100%
  );
  z-index: 1;
}
.v4-hero__title {
  position: absolute;
  top: 88px;
  left: 40px;
  z-index: 2;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: clamp(22px, min(2.5vw, calc((100svh - 110px) / 16)), 44px);
  line-height: 1.08;
  letter-spacing: .1em;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.v4-hero__caption {
  position: absolute;
  right: 36px;
  bottom: 70px;
  z-index: 2;
  max-width: 340px;
  text-align: right;
}
.v4-hero__caption .v4-mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(245,241,234,.65);
  display: block;
  margin-bottom: 10px;
}
.v4-hero__caption p {
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245,241,234,.85);
}
.v4-hero__counter {
  position: absolute;
  bottom: 26px;
  left: 40px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(245,241,234,.5);
}
.v4-hero__scroll {
  position: absolute;
  bottom: 26px;
  right: 36px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .24em;
  color: rgba(245,241,234,.4);
  writing-mode: vertical-rl;
}

/* ─── Hero slides (CSS-only 20s auto-rotate) ─── */
@keyframes hero-msg {
  0%    { opacity: 0; transform: translateY(14px); }
  3%    { opacity: 1; transform: translateY(0); }
  22%   { opacity: 1; transform: translateY(0); }
  25%   { opacity: 0; transform: translateY(-8px); }
  100%  { opacity: 0; }
}
@keyframes hero-dot {
  0%    { opacity: .3; transform: scaleX(1); }
  3%    { opacity: 1;  transform: scaleX(1.6); }
  22%   { opacity: 1;  transform: scaleX(1.6); }
  25%   { opacity: .3; transform: scaleX(1); }
  100%  { opacity: .3; transform: scaleX(1); }
}
.v4-hero__slides {
  position: absolute;
  right: 36px;
  bottom: 70px;
  z-index: 2;
  width: clamp(300px, 40vw, 500px);
  text-align: right;
}
.v4-hero__slide {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  opacity: 0;
  animation: hero-msg 20s ease-in-out infinite;
  pointer-events: none;
}
.v4-hero__slide.active-slide { pointer-events: auto; }
.v4-hero__slide:nth-child(1) { animation-delay:  0s; }
.v4-hero__slide:nth-child(2) { animation-delay:  5s; }
.v4-hero__slide:nth-child(3) { animation-delay: 10s; }
.v4-hero__slide:nth-child(4) { animation-delay: 15s; }
.v4-hero__slide-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.v4-hero__slide-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.15;
  color: var(--paper);
  margin: 0 0 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.v4-hero__slide-desc {
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(245,241,234,.8);
  margin: 0 0 16px;
}
.v4-hero__slide-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,241,234,.45);
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.v4-hero__slide-link:hover { color: var(--accent-soft); border-color: var(--accent); }

/* progress dots */
.v4-hero__dots {
  position: absolute;
  right: 36px;
  bottom: 46px;
  z-index: 2;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.v4-hero__dots span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(245,241,234,.35);
  border-radius: 1px;
  animation: hero-dot 20s ease-in-out infinite;
  transform-origin: right center;
}
.v4-hero__dots span:nth-child(1) { animation-delay:  0s; }
.v4-hero__dots span:nth-child(2) { animation-delay:  5s; }
.v4-hero__dots span:nth-child(3) { animation-delay: 10s; }
.v4-hero__dots span:nth-child(4) { animation-delay: 15s; }

/* ─── Services ─── */
.v4-services {
  border-bottom: 1.5px solid var(--ink);
}
.v4-services__grid {
  display: grid;
  grid-template-columns: 60px 1fr 1.1fr .52fr;
}
.v4-services__sidebar {
  padding: 40px 0 40px 12px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
  border-right: 1px dashed rgba(20,20,20,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v4-services__headline {
  padding: 50px 36px;
  border-right: 1px dashed rgba(20,20,20,.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.v4-services__headline h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: .95;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.v4-services__headline p {
  font-size: 13px;
  color: #616161;
  line-height: 1.8;
  max-width: 260px;
}
.v4-services__list {
  border-right: 1px dashed rgba(20,20,20,.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v4-service-row {
  display: grid;
  grid-template-columns: 34px 1fr auto 26px;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(20,20,20,.15);
  align-items: center;
  color: var(--ink);
  transition: background .14s;
}
.v4-service-row:first-child { border-top: 1px solid rgba(20,20,20,.15); }
.v4-service-row:hover { background: var(--paper-2); }
.v4-service-row:hover .v4-service-row__arrow { color: var(--accent); transform: translateX(3px); }

.v4-service-row__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}
.v4-service-row__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 19px);
}
.v4-service-row__tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .06em;
  white-space: nowrap;
}
.v4-service-row__arrow {
  font-family: var(--display);
  font-size: 16px;
  color: rgba(20,20,20,.4);
  text-align: right;
  transition: color .15s, transform .15s;
}

.v4-services__preview {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v4-preview-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.v4-preview-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  transition: opacity .22s;
}
.v4-preview-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Stats Ticker ─── */
.v4-ticker {
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding: 22px 0;
  border-bottom: 1.5px solid var(--navy);
}
.v4-ticker__track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  white-space: nowrap;
  width: 100%;
}
.v4-ticker__big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
}
.v4-ticker__big small { font-size: 20px; }
.v4-ticker__sep {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  opacity: .38;
  text-transform: uppercase;
}

/* ─── Products ─── */
.v4-products {
  padding: 50px 30px 60px;
  border-bottom: 1.5px solid var(--ink);
}
.v4-products__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 16px;
}
.v4-products__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 220px 200px;
  gap: 10px;
}

.v4-pcard {
  border: 2px solid var(--ink);
  padding: 18px;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(20,20,20,.85);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: transform .14s, box-shadow .14s;
}
.v4-pcard:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(20,20,20,.85);
}
.v4-pcard--main {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
  background: #1a1a1a;
  border-color: #1a1a1a;
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
  color: #eee;
}
.v4-pcard--b { grid-column: 8 / span 5; grid-row: 1; }
.v4-pcard--c { grid-column: 8 / span 3; grid-row: 2; }
.v4-pcard--d { grid-column: 11 / span 2; grid-row: 2; }

.v4-pcard__cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.v4-pcard--main .v4-pcard__cat { color: #555; }
.v4-pcard__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 40px);
  line-height: 1.1;
  margin-bottom: 8px;
}
.v4-pcard__desc {
  font-size: 12px;
  color: #616161;
  line-height: 1.6;
}
.v4-pcard--main .v4-pcard__desc { color: #b8b3a7; }
.v4-pcard__logo-wrap {
  margin-top: auto;
  padding-top: 12px;
}
.v4-pcard__logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 1;
}
.v4-pcard--main .v4-pcard__logo { max-height: 56px; opacity: 1; filter: invert(1); mix-blend-mode: screen; }
.v4-pcard--d .v4-pcard__logo { max-height: 32px; max-width: 100%; object-fit: contain; object-position: left; }
.v4-pcard__link {
  display: inline-block;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  border-bottom: 1px solid rgba(20,20,20,.2);
  padding-bottom: 1px;
  transition: color .15s;
}
.v4-pcard:hover .v4-pcard__link { color: var(--accent); border-color: var(--accent); }
.v4-pcard--main .v4-pcard__link { color: #666; border-color: rgba(255,255,255,.15); }
.v4-pcard--main:hover .v4-pcard__link { color: var(--accent); }

/* ─── spellbreaker detection visual ─── */
@keyframes sb-scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}
@keyframes sb-box-pulse {
  0%, 100% { border-color: rgba(220,50,50,.5); }
  50%       { border-color: rgba(220,50,50,.95); box-shadow: 0 0 8px rgba(220,50,50,.4); }
}
.v4-sb-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
  margin: 14px 0 10px;
  flex-shrink: 0;
}
.v4-sb-compare__half {
  position: relative;
  overflow: hidden;
  height: 170px;
}
.v4-sb-compare__half img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  background: #1a1a1a;
}
.v4-sb-compare__half--real img {
  filter: brightness(1.05) saturate(1.1);
}
.v4-sb-compare__half--fake img {
  filter: brightness(.95) saturate(.75) hue-rotate(5deg);
}
.v4-sb-compare__half--real::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(40,200,110,.4);
  pointer-events: none;
}
.v4-sb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  padding: 3px 7px;
  pointer-events: none;
}
.v4-sb-badge--real {
  background: rgba(28,170,90,.88);
  color: #fff;
}
.v4-sb-badge--fake {
  background: rgba(210,45,45,.9);
  color: #fff;
}
.v4-sb-compare__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(220,50,50,.07) 3px,
    rgba(220,50,50,.07) 4px
  );
  pointer-events: none;
}
.v4-sb-compare__scanlines::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(220,50,50,.12), transparent);
  animation: sb-scan 2.8s ease-in-out infinite;
}
.v4-sb-compare__detect-box {
  position: absolute;
  top: 22%;
  left: 12%;
  right: 12%;
  bottom: 18%;
  border: 1.5px solid rgba(220,50,50,.7);
  animation: sb-box-pulse 2s ease-in-out infinite;
  pointer-events: none;
}
.v4-sb-compare__detect-box::before,
.v4-sb-compare__detect-box::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-color: rgba(220,50,50,.9);
  border-style: solid;
}
.v4-sb-compare__detect-box::before {
  top: -2px; left: -2px;
  border-width: 2px 0 0 2px;
}
.v4-sb-compare__detect-box::after {
  bottom: -2px; right: -2px;
  border-width: 0 2px 2px 0;
}
.v4-sb-compare__label {
  grid-column: 1 / span 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: #3a3a3a;
  text-align: center;
  padding: 5px 0 2px;
}

/* ─── Global ─── */
.v4-global {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  border-bottom: 1.5px solid var(--ink);
}
.v4-global__sidebar {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
  border-right: 1px dashed rgba(20,20,20,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 8px;
}
.v4-global__left {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.v4-global__headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.v4-global__headline .v4-arrow { color: var(--accent); }
.v4-global__text {
  font-size: 13px;
  color: #616161;
  line-height: 1.85;
  max-width: 360px;
  margin-bottom: 24px;
}
.v4-global__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}
.v4-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  border: 1.5px solid var(--ink);
  padding: 3px 10px;
  border-radius: 30px;
}
.v4-global__right {
  padding: 40px 30px 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v4-global__map-wrap {
  width: 100%;
  max-width: 500px;
  transform: rotate(-2.5deg);
  box-shadow: 8px 8px 0 rgba(20,20,20,.12);
}
.v4-global__map {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 2px solid var(--ink);
}

/* ─── News ─── */
.v4-news {
  padding: 50px 30px;
  border-bottom: 1.5px solid var(--ink);
}
.v4-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.v4-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
}
.v4-view-all {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink);
  border-bottom: 1px solid rgba(20,20,20,.4);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.v4-view-all:hover { color: var(--accent); border-color: var(--accent); }

.v4-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v4-news-card {
  border: 2px solid var(--ink);
  padding: 18px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(20,20,20,.8);
  display: block;
  transition: transform .14s, box-shadow .14s;
}
.v4-news-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(20,20,20,.8);
}
.v4-news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.v4-news-card__date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
}
.v4-news-card__cat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  border: 1px solid var(--ink);
  padding: 1px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}
.v4-news-card__title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.v4-news-card__excerpt {
  font-size: 12px;
  color: #616161;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Recruit CTA ─── */
.v4-recruit {
  position: relative;
  overflow: hidden;
  padding: 80px 30px 90px;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--navy) 100%);
  border-bottom: none;
}
.v4-recruit__content {
  position: relative;
  z-index: 2;
  max-width: 58%;
}
.v4-recruit__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 108%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.92) 40%, rgba(0,0,0,0) 85%);
  mask-image: linear-gradient(to left, rgba(0,0,0,.92) 40%, rgba(0,0,0,0) 85%);
  pointer-events: none;
}
.v4-recruit__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.v4-recruit__headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 6.5vw, 80px);
  line-height: .96;
  max-width: 940px;
  margin-bottom: 34px;
  color: #fff;
}
.v4-recruit__headline u {
  text-decoration: underline wavy rgba(255,255,255,.6) 2px;
  text-underline-offset: 4px;
}
.v4-recruit__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── Buttons ─── */
.v4-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  padding: 10px 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.v4-btn:hover { background: var(--ink); color: var(--paper); }
.v4-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.v4-btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
/* White variant — for use on dark/gradient backgrounds */
.v4-btn--white { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
.v4-btn--white:hover { background: #fff; color: var(--accent-deep); }
.v4-btn--white-fill { background: #fff; border-color: #fff; color: var(--accent-deep); }
.v4-btn--white-fill:hover { background: rgba(255,255,255,.85); }

/* ─── Footer ─── */
.v4-footer {
  background: var(--navy);
  color: #fff;
  padding: 60px 30px 30px;
}
.v4-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.v4-footer__brand-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.v4-footer__brand-desc {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 16px;
}
.v4-footer__cert {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--accent-soft);
  border: 1px solid rgba(255,255,255,.4);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.v4-footer__yt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.v4-footer__yt:hover { color: #fff; }

.v4-footer__col-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.v4-footer__links { }
.v4-footer__links li { margin-bottom: 9px; }
.v4-footer__links a {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  transition: color .14s;
  line-height: 1.4;
}
.v4-footer__links a:hover { color: var(--accent); }

.v4-footer__contact {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  line-height: 2;
}
.v4-footer__contact p { margin-bottom: 4px; }

.v4-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.v4-footer__copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
}
.v4-footer__bottom-links {
  display: flex;
  gap: 20px;
}
.v4-footer__bottom-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  transition: color .14s;
}
.v4-footer__bottom-links a:hover { color: #fff; }

/* ─── Scroll to Top ─── */
.v4-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
}
.v4-scroll-top.visible { opacity: 1; pointer-events: all; }
.v4-scroll-top:hover { transform: translateY(-3px); }

/* ─── Hamburger button ─── */
.v4-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 310;
  flex-shrink: 0;
}
.v4-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s, opacity .2s;
}
.v4-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v4-burger.is-open span:nth-child(2) { opacity: 0; }
.v4-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Responsive: Tablet ─── */
@media (max-width: 960px) {
  .v4-services__grid { grid-template-columns: 1fr; }
  .v4-services__sidebar {
    writing-mode: horizontal-tb;
    border-right: none;
    border-bottom: 1px dashed rgba(20,20,20,.35);
    padding: 12px 20px;
    justify-content: flex-start;
  }
  .v4-services__headline,
  .v4-services__list {
    border-right: none;
    border-bottom: 1px dashed rgba(20,20,20,.35);
  }
  .v4-services__preview { display: none; }

  .v4-global { grid-template-columns: 1fr; }
  .v4-global__sidebar { display: none; }
  .v4-global__left { padding: 40px 30px 30px; }
  .v4-global__right { padding: 0 30px 40px; }

  .v4-products__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .v4-pcard--main { grid-column: 1 / span 2; grid-row: auto; min-height: 200px; }
  .v4-pcard--b,
  .v4-pcard--c,
  .v4-pcard--d { grid-column: auto; grid-row: auto; }

  .v4-news__grid { grid-template-columns: 1fr 1fr; }
  .v4-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Mobile nav overlay ─── */
@media (max-width: 768px) {
  .v4-burger { display: flex; }
  .v4-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 300;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 36px 50px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
  }
  .v4-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .v4-nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .v4-nav__list > li > a {
    font-size: 20px;
    font-family: var(--display);
    font-weight: 700;
    padding: 14px 0;
    display: block;
    border-bottom: 1px solid rgba(26,39,68,.1);
  }
  .v4-nav__list > li > a::after { display: none; }
  .v4-dropdown { display: none !important; }
  .v4-nav__cta {
    margin-top: 28px;
    font-size: 14px;
    padding: 14px 28px;
    align-self: flex-start;
  }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 600px) {
  .v4-header { padding: 16px 20px; }
  .v4-hero__title { font-size: 28px; left: 20px; top: 80px; }
  .v4-hero__slides { right: 20px; left: 80px; bottom: 60px; width: auto; text-align: left; }
  .v4-hero__slide-title { font-size: 22px; }
  .v4-hero__dots { right: 20px; bottom: 36px; }
  .v4-hero__counter { left: 20px; }
  .v4-hero__scroll { display: none; }

  .v4-services__headline { padding: 30px 20px; }
  .v4-services__headline h2 { font-size: 42px; }

  .v4-products__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .v4-pcard--main,
  .v4-pcard--b,
  .v4-pcard--c,
  .v4-pcard--d { grid-column: 1; grid-row: auto; }

  .v4-news__grid { grid-template-columns: 1fr; }

  .v4-recruit { padding: 50px 20px 60px; }
  .v4-recruit__content { max-width: 100%; }
  .v4-recruit__photo { display: none; }
  .v4-recruit__headline { font-size: clamp(32px, 9vw, 50px); }

  .v4-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .v4-footer { padding: 40px 20px 24px; }

  .v4-overlay { padding: 80px 24px 40px; }

  .v4-products { padding: 40px 20px 50px; }
  .v4-news { padding: 40px 20px; }
  .v4-global__left { padding: 30px 20px 20px; }
  .v4-global__right { padding: 0 20px 30px; }
  .v4-ticker__big { font-size: 32px; }
}
