/* ==========================================================================
   2013-2015 REFINED CORPORATE DESIGN SYSTEM (PRINTING & PRODUCTION CO., LTD.)
   ========================================================================== */

:root {
  /* Refined Clean Corporate Palette */
  --bg-body: #ffffff;
  --bg-white: #ffffff;
  --bg-section: #f8fafc;
  --bg-card-header: linear-gradient(180deg, #2b547e 0%, #1b365d 100%);
  --bg-nav: #1b365d;
  --bg-nav-hover: #2b547e;
  --bg-nav-active: #0f2341;
  
  --text-main: #2c3e50;
  --text-muted: #606f7b;
  --text-primary: #1b365d;
  --text-accent: #31708f;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #1b365d;

  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 12px rgba(27, 54, 93, 0.06);

  --font-corporate: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-corporate);
  font-size: 14.5px;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Professional Typesetting & Numerical Alignment */
.header-tel, .stat-big-num, .corp-table td:first-child {
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-family: "Helvetica Neue", "Arial", var(--font-corporate);
}

/* Open Container */
.corporate-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 36px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
}

.corporate-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 24px;
  margin-bottom: 24px;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 16px;
}

/* Full Page Screen Opening Wipe Animation (Pattern A) */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9998;
  pointer-events: none;
  opacity: 1;
  animation: pageWhiteHide 0.1s linear 0.4s forwards;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  background-color: var(--bg-nav);
  transform: scaleX(0);
  transform-origin: left center;
  /* 0.4s initial white tame, then 1.1s navy sweep */
  animation: pageWipeNavy 1.1s cubic-bezier(0.77, 0, 0.175, 1) 0.4s forwards;
}

/* Entire container progressively reveals from left to right as navy ink passes over */
.corporate-container {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: pageInkTransfer 0.9s cubic-bezier(0.77, 0, 0.175, 1) 0.55s forwards;
}

@keyframes pageWhiteHide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes pageWipeNavy {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  45% {
    transform: scaleX(1);
    transform-origin: left center;
  }
  55% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

@keyframes pageInkTransfer {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.logo-area {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  text-decoration: none;
}

.brand-logo-image {
  display: block;
  width: min(360px, 46vw);
  height: auto;
}

.header-contact-info {
  text-align: right;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.header-tel {
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-top: 3px;
}

/* Global Navigation Bar */
.global-nav {
  background: var(--bg-nav);
  border-radius: 6px;
  padding: 5px;
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.nav-item {
  flex: 1;
  text-align: center;
}

.nav-link {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.nav-link:hover {
  background: var(--bg-nav-hover);
}

.nav-link.active {
  background: var(--bg-nav-active);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Photo Hero Banner Styles */
.hero-banner-photo {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroImageSettle 7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-photo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(15, 38, 78, 0.92) 0%, rgba(27, 54, 93, 0.75) 60%, rgba(0,0,0,0.3) 100%);
  padding: 36px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  animation: heroOverlayReveal 1.1s ease-out both;
  z-index: 1;
}

.hero-banner-photo::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: -18%;
  width: 12%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  transform: skewX(-12deg);
  animation: heroPressLight 1.8s 0.45s ease-in-out both;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  animation: heroCopyIn 0.7s 0.25s ease-out both;
}

.hero-text {
  font-size: 0.98rem;
  color: #e2e8f0;
  max-width: 760px;
  line-height: 1.85;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  animation: heroCopyIn 0.7s 0.42s ease-out both;
}

@keyframes heroImageSettle {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}

@keyframes heroOverlayReveal {
  from { opacity: 0.82; }
  to { opacity: 1; }
}

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroPressLight {
  0% { left: -18%; opacity: 0; }
  18% { opacity: 1; }
  75% { opacity: 0.7; }
  100% { left: 112%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img,
  .hero-photo-overlay,
  .hero-title,
  .hero-text,
  .hero-banner-photo::after {
    animation: none;
  }
}

/* Key Achievements Infographics Grid */
.infographic-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card-pro {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.stat-card-pro:hover {
  transform: translateY(-2px);
  border-color: var(--text-accent);
}

.stat-label-pro {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-big-num {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-unit-pro {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-accent);
  margin-left: 2px;
}

.stat-desc-pro {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Main Layout Grid */
.corporate-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  flex: 1;
  align-items: start;
}

/* Corporate Cards */
.corp-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-soft);
}

.corp-card-header {
  background: var(--bg-card-header);
  color: #ffffff;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.corp-card-body {
  padding: 28px;
}

/* Tables */
.corp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.corp-table th, .corp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  line-height: 1.75;
}

.corp-table th {
  background: #f8fafc;
  color: var(--text-primary);
  font-weight: bold;
  width: 135px;
}

/* Business Calendar Styles */
.calendar-body { padding: 16px; }

.calendar-controls {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
}

.calendar-month-title {
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.calendar-move {
  width: 34px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
  color: var(--text-primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.calendar-move:hover {
  background: var(--bg-nav);
  color: #fff;
}

.calendar-today {
  display: block;
  margin: 6px auto 2px;
  padding: 2px 9px;
  border: 0;
  background: transparent;
  color: var(--text-accent);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.business-calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 6px;
}

.business-calendar th {
  padding: 6px 4px;
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: bold;
  border: 1px solid var(--border-color);
}

.business-calendar th.sun { color: #d9534f; }
.business-calendar th.sat { color: #337ab7; }

.business-calendar td {
  position: relative;
  padding: 7px 3px;
  border: 1px solid var(--border-light);
}

.business-calendar td.holiday {
  background: #fdf2f2;
  color: #d9534f;
  font-weight: bold;
}

.business-calendar td.sat-holiday {
  background: #f0f7ff;
  color: #337ab7;
  font-weight: bold;
}

.business-calendar td.company-holiday {
  background: #fff2df;
  color: #9a4b00;
}

.closure-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d97706;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.legend-box {
  display: inline-block;
  width: 100px;
  height: 10px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}

.legend-box.calendar-closed { background:#fee2e2; border:1px solid #dc2626; }
.legend-box.calendar-open { background:#fff; border:1px solid #cbd5e1; }
.calendar-note { margin-top:6px; color:var(--text-muted); font-size:0.75rem; text-align:center; }
.calendar-closure-note { margin-top:8px; color:#9a4b00; font-size:0.74rem; font-weight:700; text-align:center; }

/* Partner Banners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.partner-banner {
  min-height: 48px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-main);
  text-decoration: none;
  text-align: center;
  transition: all 0.15s ease;
}

.partner-banner:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
  background: #f0f7ff;
}

/* Forms */
.corp-input, .corp-textarea, .corp-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-corporate);
  font-size: 0.92rem;
  background: #ffffff;
}

.corp-input:focus, .corp-textarea:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(49, 112, 143, 0.12);
}

.corp-btn {
  background: var(--bg-nav);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 11px 28px;
  font-size: 0.95rem;
  font-weight: bold;
  font-family: var(--font-corporate);
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.15s ease;
}

.corp-btn:hover {
  background: var(--bg-nav-hover);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-item,
.portfolio-card {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #f8fafc;
}

.service-item h3 {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 1rem;
}

.service-item p,
.portfolio-card p {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-card h2 {
  margin: 10px 0 5px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.portfolio-card p { flex: 1; }

.portfolio-thumb {
  width: 100%;
  height: 160px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #e2e8f0;
  cursor: pointer;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-thumb:hover img { transform: scale(1.035); }
.portfolio-card-action { margin-top: 12px; text-align: right; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; }
.form-group label span { color: #b91c1c; font-size: 0.75rem; }
.contact-notice { margin-bottom: 18px; padding: 12px; border: 1px solid var(--border-color); background: #f0f7ff; }

/* Large Lightbox Modals */
html.portfolio-open,
body.portfolio-open {
  overflow: hidden;
}

.modal-overlay-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #07101f;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.42s ease;
}

.modal-overlay-bg.is-open {
  opacity: 1;
}

.modal-large-content {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0d1b30;
  transform: scale(0.975);
  transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.is-open .modal-large-content {
  transform: scale(1);
}

.modal-large-content > .corp-card-header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 34px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(5, 12, 25, 0.88), transparent);
  border: 0;
}

.modal-large-content > .corp-card-header span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.78;
}

.modal-large-content > .corp-card-header .close-popup {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.35) !important;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-large-content > .corp-card-header .close-popup:hover {
  transform: rotate(90deg);
  background: rgba(255,255,255,0.12) !important;
}

.modal-grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 0;
  height: 100%;
  padding: 0;
}

.modal-grid-2col > div:first-child {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #050b15;
}

.modal-grid-2col > div:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 72%, rgba(8,17,31,0.7));
}

.modal-grid-2col > div:first-child img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: scale(1.09);
  filter: saturate(0.88) contrast(1.03);
  transition: transform 1.2s cubic-bezier(0.2, 0.75, 0.2, 1), filter 0.8s ease;
}

.is-open .modal-grid-2col > div:first-child img {
  transform: scale(1);
  filter: saturate(1) contrast(1);
}

.modal-grid-2col > div:nth-child(2) {
  position: relative;
  overflow-y: auto;
  padding: 120px clamp(30px, 4vw, 72px) 110px;
  background: #0d1b30;
  color: #e7edf5;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.65s 0.16s ease, transform 0.65s 0.16s ease;
}

.is-open .modal-grid-2col > div:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
}

.modal-grid-2col > div:nth-child(2) h3 {
  color: #fff !important;
  font-size: clamp(1.65rem, 2.5vw, 2.65rem) !important;
  line-height: 1.35;
  border: 0 !important;
  padding: 0 0 24px !important;
  margin-bottom: 26px !important;
}

.modal-grid-2col > div:nth-child(2) h3::before {
  content: "CASE STUDY";
  display: block;
  margin-bottom: 12px;
  color: #8db8df;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.modal-grid-2col > div:nth-child(2) > div > div {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #dce7f2 !important;
  line-height: 1.8;
}

.modal-grid-2col > div:nth-child(2) p {
  color: #d4deea !important;
  line-height: 2 !important;
}

.modal-grid-2col > div:nth-child(2) > div:last-child:has(.close-popup) {
  display: none;
}

.portfolio-navigation {
  position: absolute;
  z-index: 5;
  right: clamp(30px, 4vw, 72px);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.portfolio-nav {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.portfolio-nav:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.06);
}

.portfolio-position {
  min-width: 54px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

/* Perfectly Centered Corporate Footer */
.corporate-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  padding-bottom: 8px;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.corporate-footer p {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* ==========================================================================
   COMPLETE RESPONSIVE MEDIA QUERIES (MOBILE & TABLET OPTIMIZATION)
   ========================================================================== */

@media (max-width: 860px) {
  .corporate-container {
    padding: 20px 16px;
  }
  
  .corporate-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-contact-info {
    text-align: left;
    width: 100%;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
  }

  .global-nav {
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-item {
    flex: 1 1 45%; /* 2 Column layout on mobile for navigation */
  }

  .nav-link {
    padding: 9px 8px;
    font-size: 0.85rem;
  }

  .hero-banner-photo {
    height: auto;
    min-height: 220px;
  }

  .hero-photo-overlay {
    padding: 20px 22px;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-text {
    font-size: 0.88rem;
  }

  .infographic-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-big-num {
    font-size: 1.75rem;
  }

  .corporate-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .corp-card-body {
    padding: 16px;
  }

  .corp-table th, .corp-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .corp-table th {
    width: 100px;
  }

  .modal-grid-2col {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh minmax(0, 1fr);
    padding: 0;
    gap: 0;
    overflow-y: auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .modal-large-content > .corp-card-header {
    height: 58px;
    padding: 0 16px;
  }

  .modal-large-content > .corp-card-header span {
    max-width: calc(100% - 58px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal-grid-2col > div:first-child {
    min-height: 45vh;
  }

  .modal-grid-2col > div:first-child::after {
    background: linear-gradient(180deg, transparent 72%, #0d1b30);
  }

  .modal-grid-2col > div:nth-child(2) {
    overflow: visible;
    padding: 42px 22px 104px;
  }

  .modal-grid-2col > div:nth-child(2) h3 {
    font-size: 1.55rem !important;
  }

  .portfolio-navigation {
    position: fixed;
    right: 18px;
    bottom: 18px;
    padding: 6px;
    border-radius: 30px;
    background: rgba(5,12,25,0.82);
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 480px) {
  .nav-item {
    flex: 1 1 100%; /* 1 Column layout on small mobile screens */
  }

  .infographic-stats-grid {
    grid-template-columns: 1fr;
  }

  .logo-area {
    width: 100%;
  }

  .brand-logo-image {
    width: min(100%, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay-bg,
  .modal-large-content,
  .modal-grid-2col > div:first-child img,
  .modal-grid-2col > div:nth-child(2) {
    transition: none;
  }
}
