@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:opsz,wght@8..14,100..900&display=swap");

:root {
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    sans-serif;
  --font-display: "Inter Tight", "Helvetica Neue", Arial, "Yu Gothic",
    "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --color-bg: #f2f9ff;
  --color-text: #05204a;
  --color-muted: #416289;
  --color-accent: #ffc20e;
  --color-accent-soft: #fff3c4;
  --color-accent-blue: #0080ff;
  --color-border: #b8d4f2;
  --color-surface: #ffffff;
  --shadow-soft: 0 14px 0 rgba(5, 32, 74, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-full: 999px;
  --container-max: 1100px;
}

body {
  font-family: var(--font-base);
  background:
    radial-gradient(
      circle at 8% -10%,
      rgba(0, 128, 255, 0.35),
      transparent 48%
    ),
    radial-gradient(
      circle at 96% 108%,
      rgba(255, 194, 14, 0.36),
      transparent 50%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.75),
      rgba(231, 244, 255, 0.82)
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(5, 32, 74, 0.035) 0,
      rgba(5, 32, 74, 0.035) 2px,
      transparent 2px,
      transparent 14px
    ),
    var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 32, 74, 0.97),
    rgba(0, 64, 143, 0.92)
  );
  border-bottom: 2px solid rgba(255, 194, 14, 0.86);
  box-shadow: 0 8px 20px rgba(5, 32, 74, 0.26);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wght" 740;
  font-weight: 700;
  letter-spacing: 0.13em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 0 rgba(255, 194, 14, 0.35);
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: #ffffff;
}

.global-nav a {
  position: relative;
  padding-block: 4px;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    #ffde59,
    var(--color-accent-blue)
  );
  transition: width 0.2s ease;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  padding-inline: 14px;
  padding-block: 6px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 194, 14, 0.9);
  background: radial-gradient(
      circle at 20% 10%,
      rgba(255, 255, 255, 0.36),
      transparent 55%
    ),
    linear-gradient(135deg, #ffc20e, #ffde59);
  color: #08326d;
  font-weight: 700;
  box-shadow: 0 6px 0 rgba(255, 194, 14, 0.5);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #333333;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin-top: 40px;
  margin-bottom: 64px;
  gap: 32px;
  align-items: center;
  background:
    linear-gradient(
      135deg,
      rgba(0, 128, 255, 0.2),
      rgba(255, 194, 14, 0.16)
    );
  border-radius: 28px;
  border: 2px solid rgba(0, 128, 255, 0.25);
  box-shadow: 0 14px 0 rgba(5, 32, 74, 0.14),
    0 26px 48px rgba(5, 32, 74, 0.18);
}

.hero-media {
  position: relative;
  padding-left: max((100vw - var(--container-max)) / 2, 16px);
}

.hero-image {
  border-radius: 32px;
  min-height: 360px;
  border: 3px solid rgba(255, 194, 14, 0.8);
  box-shadow: var(--shadow-soft);
  background-size: cover;
  background-position: center;
}

.hero-image-placeholder {
  background-image: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.2)
    ),
    url("https://images.pexels.com/photos/399187/pexels-photo-399187.jpeg?auto=compress&cs=tinysrgb&w=1200");
}

.hero-content {
  padding-inline: 0;
}

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #005fca;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wght" 820, "opsz" 14;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 3px 0 rgba(255, 194, 14, 0.28);
  transition: font-variation-settings 0.35s ease, letter-spacing 0.35s ease;
}

.hero-text {
  color: var(--color-muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding-block: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 780;
  font-variation-settings: "wght" 780, "opsz" 13;
  font-size: 1.6rem;
  margin-bottom: 10px;
  position: relative;
  transition: font-variation-settings 0.25s ease, transform 0.25s ease;
}

.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-blue)
  );
}

.section-lead {
  color: var(--color-muted);
  max-width: 520px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-link {
  font-size: 0.9rem;
  color: #0063d1;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
  padding-block: 10px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease;
}

.btn.primary {
  background: radial-gradient(
      circle at 20% 10%,
      #ffe38a,
      transparent 52%
    ),
    linear-gradient(135deg, #ffc20e, #ffde59);
  color: #07306a;
  border-color: rgba(5, 32, 74, 0.25);
  box-shadow: 0 6px 0 rgba(255, 194, 14, 0.52),
    0 16px 26px rgba(5, 32, 74, 0.22);
}

.btn.ghost {
  background: #fefefe;
  border-color: rgba(0, 128, 255, 0.52);
  color: #005fca;
  box-shadow: 0 5px 0 rgba(0, 128, 255, 0.2);
}

.btn.large {
  padding-inline: 28px;
  padding-block: 14px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 0 rgba(5, 32, 74, 0.2), 0 16px 24px rgba(5, 32, 74, 0.2);
}

.section-gallery-preview {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  border-top: 2px solid rgba(0, 128, 255, 0.14);
  border-bottom: 2px solid rgba(0, 128, 255, 0.14);
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  border: 2px solid rgba(255, 194, 14, 0.8);
  box-shadow: 0 9px 0 rgba(5, 32, 74, 0.12);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.gallery-card-meta {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(0, 64, 143, 0.82),
    rgba(0, 128, 255, 0.72)
  );
  color: #ffffff;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-about-preview {
  padding-bottom: 40px;
}

.about-preview-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.avatar-placeholder,
.avatar-large-placeholder {
  border-radius: 28px;
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.35),
      transparent 45%
    ),
    linear-gradient(135deg, #0077ff, #00a6ff 52%, #ffcf33);
  min-height: 220px;
  border: 2px solid rgba(255, 194, 14, 0.8);
  box-shadow: var(--shadow-soft);
}

.avatar-large-placeholder {
  min-height: 280px;
}

.section-pricing-preview {
  background: rgba(255, 255, 255, 0.72);
  border-top: 2px solid rgba(255, 194, 14, 0.25);
  border-bottom: 2px solid rgba(255, 194, 14, 0.25);
}

.pricing-preview-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  border: 2px solid rgba(0, 128, 255, 0.25);
  box-shadow: 0 9px 0 rgba(5, 32, 74, 0.09);
}

.pricing-card h3,
.pricing-card h2 {
  margin-bottom: 6px;
}

.price {
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card ul {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.blog-preview-list,
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(0, 128, 255, 0.2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 0 rgba(5, 32, 74, 0.08);
}

.blog-card-thumb {
  height: 180px;
  background: #ddd;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 14px 16px 16px;
}

.blog-card-title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.section-cta {
  text-align: center;
  background: radial-gradient(
      circle at top left,
      rgba(255, 233, 154, 0.25),
      transparent 50%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(0, 162, 255, 0.3),
      transparent 55%
    ),
    #05306b;
  color: #ffffff;
  border-top: 2px solid rgba(255, 194, 14, 0.7);
  border-bottom: 2px solid rgba(255, 194, 14, 0.7);
}

.section-cta .section-lead {
  color: rgba(255, 255, 255, 0.8);
  margin-inline: auto;
}

.page-hero {
  padding-top: 40px;
  padding-bottom: 24px;
}

.page-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 820;
  font-variation-settings: "wght" 820, "opsz" 14;
  font-size: 2rem;
  margin-top: 8px;
  margin-bottom: 10px;
  transition: font-variation-settings 0.3s ease, letter-spacing 0.3s ease;
}

.page-lead {
  color: var(--color-muted);
  max-width: 520px;
}

.gallery-controls {
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding-inline: 13px;
  padding-block: 6px;
  border-radius: 999px;
  border: 2px solid rgba(0, 128, 255, 0.26);
  background: #ffffff;
  font-size: 0.86rem;
  cursor: pointer;
  color: #084082;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(5, 32, 74, 0.08);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, #ffc20e, #ffde59);
  border-color: #ffbf00;
  color: #07306a;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(0, 128, 255, 0.3);
  box-shadow: 0 8px 0 rgba(5, 32, 74, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-label {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(0, 64, 143, 0.84),
    rgba(0, 128, 255, 0.75)
  );
  color: #ffffff;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: min(100% - 32px, 900px);
  background: #021a3c;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 194, 14, 0.85);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-image-wrapper {
  max-height: min(80vh, 640px);
}

.lightbox-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.lightbox-meta {
  padding: 14px 16px 16px;
  color: #ffffff;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}

.timeline {
  margin-top: 10px;
  border-left: 2px solid var(--color-border);
  padding-left: 18px;
}

.timeline li {
  position: relative;
  padding-left: 6px;
  margin-bottom: 12px;
}

.timeline-year {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffbf00;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.equipment-column h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.options-list,
.notes-list {
  margin-top: 8px;
}

.options-list li,
.notes-list li {
  padding-left: 1em;
  text-indent: -0.7em;
}

.options-list li::before,
.notes-list li::before {
  content: "・";
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: flex-start;
}

.admin-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: flex-start;
}

.contact-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  border: 2px solid rgba(0, 128, 255, 0.2);
  box-shadow: 0 8px 0 rgba(5, 32, 74, 0.1);
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.required {
  color: var(--color-accent);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

textarea {
  resize: vertical;
}

.field-error {
  font-size: 0.8rem;
  color: #cc1340;
  min-height: 1em;
  margin-top: 2px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-status {
  font-size: 0.85rem;
}

.contact-side {
  font-size: 0.9rem;
}

.contact-email span {
  text-decoration: underline;
}

.blog-detail {
  background: rgba(255, 255, 255, 0.92);
  border-top: 2px solid rgba(0, 128, 255, 0.15);
  border-bottom: 2px solid rgba(0, 128, 255, 0.15);
}

.blog-back {
  margin-bottom: 12px;
}

.blog-detail-header {
  margin-bottom: 14px;
}

.blog-detail-title {
  font-size: 1.6rem;
}

.blog-detail-date {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.blog-detail-body p {
  margin-bottom: 10px;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.responsive-image {
  border-radius: 22px;
  border: 2px solid rgba(255, 194, 14, 0.75);
  box-shadow: var(--shadow-soft);
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.project-gallery-item img {
  border-radius: 20px;
}

.project-credits ul {
  margin-top: 8px;
}

.site-footer {
  margin-top: 40px;
  padding-block: 20px 26px;
  border-top: 2px solid rgba(255, 194, 14, 0.7);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(230, 243, 255, 0.92)
  );
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-small {
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: #517095;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.82rem;
}

.footer-sns {
  display: flex;
  gap: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: 2;
    padding-left: 16px;
  }

  .hero-content {
    order: 1;
  }

  .about-preview-inner,
  .about-layout,
  .contact-layout,
  .admin-upload-layout,
  .project-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-block: 10px;
  }

  .global-nav ul {
    position: absolute;
    inset-inline: 16px;
    top: 56px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(0, 128, 255, 0.16);
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .global-nav ul.is-open {
    max-height: 260px;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Apple x Chargers theme overrides */
:root {
  --color-bg: #f6f9ff;
  --color-text: #0f2747;
  --color-muted: #5a7597;
  --color-accent: #ffc72c;
  --color-accent-soft: #fff4cb;
  --color-accent-blue: #0089ff;
  --color-border: #c9def5;
  --color-surface: #ffffff;
}

body {
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 137, 255, 0.2), transparent 42%),
    radial-gradient(circle at 92% 96%, rgba(255, 199, 44, 0.24), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(0, 137, 255, 0.2);
  box-shadow: 0 8px 28px rgba(15, 39, 71, 0.09);
}

.logo,
.global-nav ul {
  color: #113460;
}

.logo {
  text-shadow: none;
  letter-spacing: 0.1em;
}

.global-nav a::after {
  height: 2px;
  background: linear-gradient(90deg, #0089ff, #ffc72c);
}

.nav-cta {
  border: 1px solid rgba(0, 137, 255, 0.32);
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  color: #005abb;
  box-shadow: 0 10px 24px rgba(0, 82, 171, 0.12);
}

.hero {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
  margin-top: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 20px;
  gap: 28px;
  border: 1px solid rgba(0, 137, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.92)),
    linear-gradient(135deg, rgba(0, 137, 255, 0.06), rgba(255, 199, 44, 0.06));
  box-shadow: 0 16px 50px rgba(15, 39, 71, 0.13);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -110px;
  top: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 199, 44, 0.36), transparent 70%);
}

.hero-media {
  padding-left: 0;
  position: relative;
}

.hero-lightning {
  position: absolute;
  z-index: 2;
  right: 16px;
  top: 16px;
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, #ffe28a, #ffc72c);
  clip-path: polygon(46% 0%, 100% 0%, 61% 44%, 82% 44%, 0% 100%, 31% 57%, 12% 57%);
  filter: drop-shadow(0 10px 14px rgba(255, 199, 44, 0.45));
}

.hero-image {
  min-height: 520px;
  border-radius: 24px;
  border: 1px solid rgba(0, 137, 255, 0.25);
  box-shadow: 0 16px 40px rgba(15, 39, 71, 0.2);
}

.hero-content.container {
  width: 100%;
  margin: 0;
  padding-inline: 0;
  align-self: center;
}

.hero-collab-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0e447e;
  border: 1px solid rgba(0, 137, 255, 0.3);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero-collab-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0089ff, #ffc72c);
}

.hero-eyebrow {
  color: #006fd9;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: #0d2e55;
  text-shadow: none;
}

.hero-text {
  font-size: 1.02rem;
  color: var(--color-muted);
  max-width: 52ch;
  margin-bottom: 20px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-metrics li {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d2e55;
  border: 1px solid rgba(0, 137, 255, 0.24);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.btn {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.05em;
}

.btn.primary {
  color: #05366d;
  border: 1px solid rgba(255, 199, 44, 0.7);
  background: linear-gradient(135deg, #ffe38b, #ffc72c);
  box-shadow: 0 10px 26px rgba(255, 199, 44, 0.34);
}

.btn.ghost {
  border: 1px solid rgba(0, 137, 255, 0.33);
  color: #006fd9;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 82, 171, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 39, 71, 0.2);
}

.section {
  padding-block: 68px;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.01em;
}

.section-title::after {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #0089ff, #ffc72c);
}

.section-lead {
  color: var(--color-muted);
}

.section-gallery-preview,
.section-pricing-preview,
.blog-detail {
  background: transparent;
  border: none;
}

.gallery-card,
.gallery-item,
.pricing-card,
.blog-card,
.contact-form {
  border: 1px solid rgba(0, 137, 255, 0.18);
  box-shadow: 0 10px 28px rgba(15, 39, 71, 0.08);
  border-radius: 18px;
}

.gallery-card-meta,
.gallery-item-label {
  background: linear-gradient(135deg, rgba(11, 58, 112, 0.86), rgba(0, 137, 255, 0.82));
}

.filter-btn {
  border: 1px solid rgba(0, 137, 255, 0.25);
  box-shadow: none;
}

.filter-btn.is-active {
  background: linear-gradient(135deg, #ffe38b, #ffc72c);
  border-color: rgba(255, 199, 44, 0.88);
  color: #06336a;
}

.section-cta {
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 199, 44, 0.26), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 137, 255, 0.28), transparent 42%),
    linear-gradient(150deg, #0f2f55, #0a4c94);
  border-top: 1px solid rgba(255, 199, 44, 0.65);
  border-bottom: 1px solid rgba(255, 199, 44, 0.65);
}

.site-footer {
  border-top: 1px solid rgba(0, 137, 255, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .hero-media {
    order: 1;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .site-header {
    background: rgba(255, 255, 255, 0.93);
  }

  .global-nav ul {
    border: 1px solid rgba(0, 137, 255, 0.16);
    box-shadow: 0 14px 32px rgba(15, 39, 71, 0.14);
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-metrics li {
    font-size: 0.7rem;
  }
}

.apple-chargers-home {
  padding-bottom: 20px;
}

.section-header-stack {
  display: block;
  margin-bottom: 24px;
}

.section-kicker {
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #006fd9;
  font-weight: 700;
}

.section-kicker-light {
  color: rgba(255, 255, 255, 0.85);
}

.section-proof-strip {
  padding-top: 10px;
  padding-bottom: 12px;
}

.proof-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-pill {
  border: 1px solid rgba(0, 137, 255, 0.24);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #15487d;
}

.landing-featured,
.landing-about,
.landing-pricing,
.landing-journal {
  position: relative;
}

.landing-featured .gallery-preview-grid,
.landing-journal .blog-preview-list {
  margin-top: 14px;
}

.landing-about .about-preview-inner {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(0, 137, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 248, 255, 0.85));
  box-shadow: 0 14px 36px rgba(15, 39, 71, 0.1);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.about-badges li {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #12406f;
  border: 1px solid rgba(0, 137, 255, 0.24);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  padding: 7px 12px;
}

.landing-pricing .pricing-preview-grid {
  margin-top: 12px;
}

.landing-pricing .pricing-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-pricing .pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 39, 71, 0.14);
}

.cta-inner {
  max-width: 760px;
  margin-inline: auto;
}

.section-cta .section-title::after {
  background: linear-gradient(90deg, #ffc72c, #ffffff);
  margin-inline: auto;
}

.section-cta .section-lead {
  margin-inline: auto;
  max-width: 54ch;
}

@media (max-width: 900px) {
  .landing-about .about-preview-inner {
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .section {
    padding-block: 52px;
  }

  .proof-pill {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
}

/* Extra flashy pass */
body.page-index {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 153, 255, 0.34), transparent 34%),
    radial-gradient(circle at 90% 86%, rgba(255, 199, 44, 0.36), transparent 30%),
    radial-gradient(circle at 42% 100%, rgba(32, 199, 255, 0.22), transparent 36%),
    linear-gradient(180deg, #fcfeff 0%, #e9f4ff 52%, #f7fbff 100%);
  background-size: 100% 100%;
  animation: pagePulse 9s ease-in-out infinite;
}

.apple-chargers-home {
  position: relative;
}

.apple-chargers-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -35deg,
      rgba(0, 100, 207, 0.04) 0,
      rgba(0, 100, 207, 0.04) 2px,
      transparent 2px,
      transparent 18px
    );
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.hero {
  border: 1px solid rgba(0, 137, 255, 0.3);
  box-shadow: 0 30px 70px rgba(15, 39, 71, 0.2);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      transparent 20%,
      rgba(255, 255, 255, 0.38) 40%,
      transparent 60%
    );
  transform: translateX(-120%);
  animation: heroSweep 6.4s ease-in-out infinite;
}

.hero-lightning {
  animation: boltFlash 1.8s steps(2, end) infinite;
}

.hero-title {
  background: none;
  color: #eaf7ff;
  filter: drop-shadow(0 2px 8px rgba(0, 110, 220, 0.2));
  text-shadow: 0 0 10px rgba(0, 178, 255, 0.26), 0 0 18px rgba(255, 199, 44, 0.2);
}

.hero-collab-tag {
  box-shadow: 0 0 0 1px rgba(0, 137, 255, 0.22), 0 12px 20px rgba(0, 77, 158, 0.12);
}

.hero-metrics li,
.proof-pill,
.about-badges li {
  position: relative;
  overflow: hidden;
}

.hero-metrics li::before,
.proof-pill::before,
.about-badges li::before {
  content: "";
  position: absolute;
  inset: -120% auto auto -60%;
  width: 60%;
  height: 320%;
  transform: rotate(28deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.58),
    transparent
  );
  animation: chipShine 5.8s linear infinite;
}

.section-kicker {
  text-shadow: 0 0 8px rgba(0, 120, 231, 0.2);
}

.section-title {
  position: relative;
}

.section-title::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0.18em;
  width: 6px;
  height: 0.9em;
  border-radius: 999px;
  background: linear-gradient(180deg, #00a6ff, #ffc72c);
  box-shadow: 0 0 14px rgba(0, 153, 255, 0.34);
}

.gallery-card,
.gallery-item,
.pricing-card,
.blog-card,
.contact-form {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gallery-card:hover,
.gallery-item:hover,
.pricing-card:hover,
.blog-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0, 137, 255, 0.4);
  box-shadow: 0 26px 34px rgba(15, 39, 71, 0.16);
}

.gallery-card-meta,
.gallery-item-label {
  box-shadow: 0 10px 18px rgba(0, 64, 143, 0.28);
}

.btn.primary {
  position: relative;
  isolation: isolate;
}

.btn.primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1;
  background: conic-gradient(from 180deg, #ffe99e, #ffc72c, #ffb200, #ffe99e);
  filter: blur(8px);
  opacity: 0.55;
  animation: buttonAura 2.8s linear infinite;
}

.btn.primary:hover::before {
  opacity: 0.78;
}

.section-cta {
  position: relative;
  overflow: hidden;
}

.section-cta::before,
.section-cta::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.55;
}

.section-cta::before {
  left: -50px;
  top: -50px;
  background: radial-gradient(circle, rgba(255, 199, 44, 0.66), transparent 66%);
}

.section-cta::after {
  right: -50px;
  bottom: -50px;
  background: radial-gradient(circle, rgba(0, 169, 255, 0.6), transparent 68%);
}

@keyframes pagePulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.02);
  }
}

@keyframes heroSweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  16% {
    opacity: 0.8;
  }
  32% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes boltFlash {
  0%,
  75%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 10px 14px rgba(255, 199, 44, 0.45));
  }
  80% {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 0 26px rgba(255, 199, 44, 0.9));
  }
  88% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 14px rgba(255, 199, 44, 0.78));
  }
}

@keyframes chipShine {
  0% {
    transform: translateX(-120%) rotate(28deg);
  }
  30%,
  100% {
    transform: translateX(260%) rotate(28deg);
  }
}

@keyframes buttonAura {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .section-title::before {
    display: none;
  }

  .hero::after {
    animation-duration: 7.6s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-index,
  .hero::after,
  .hero-lightning,
  .hero-metrics li::before,
  .proof-pill::before,
  .about-badges li::before,
  .btn.primary::before {
    animation: none;
  }
}

/* Maximum flashy layer */
.fx-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 128, 255, 0.07) 0,
      rgba(0, 128, 255, 0.07) 1px,
      transparent 1px,
      transparent 88px
    ),
    linear-gradient(
      180deg,
      rgba(255, 199, 44, 0.04) 0,
      rgba(255, 199, 44, 0.04) 1px,
      transparent 1px,
      transparent 88px
    );
  opacity: 0.55;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.48),
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.48)
  );
}

.fx-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}

.fx-orb-a {
  top: 360px;
  left: min(8vw, 48px);
  background: radial-gradient(circle, rgba(0, 172, 255, 0.42), transparent 70%);
  animation: orbFloatA 7.2s ease-in-out infinite;
}

.fx-orb-b {
  top: 980px;
  right: min(6vw, 40px);
  background: radial-gradient(circle, rgba(255, 199, 44, 0.52), transparent 72%);
  animation: orbFloatB 9.4s ease-in-out infinite;
}

.hero,
.section,
.super-cta-inner {
  position: relative;
  z-index: 1;
}

.section-energy-ticker {
  padding-block: 8px 22px;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  border-top: 1px solid rgba(0, 137, 255, 0.18);
  border-bottom: 1px solid rgba(0, 137, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(229, 244, 255, 0.78)),
    linear-gradient(120deg, rgba(0, 137, 255, 0.08), rgba(255, 199, 44, 0.08));
}

.ticker-track p {
  flex: 0 0 auto;
  padding: 10px 0;
  min-width: 100%;
  font-size: clamp(1.02rem, 3.2vw, 1.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0953a0;
  font-weight: 800;
  animation: tickerMove var(--ticker-speed) linear infinite;
  text-shadow: 0 0 10px rgba(0, 140, 255, 0.15);
}

.super-cta-inner {
  border-radius: 28px;
  border: 1px solid rgba(0, 137, 255, 0.24);
  background:
    radial-gradient(circle at 80% -10%, rgba(255, 199, 44, 0.28), transparent 34%),
    radial-gradient(circle at 10% 120%, rgba(0, 166, 255, 0.24), transparent 40%),
    linear-gradient(145deg, #ffffff, #e8f4ff 58%, #f7fcff);
  box-shadow: 0 24px 44px rgba(15, 39, 71, 0.14);
  padding: clamp(24px, 4vw, 46px);
  text-align: center;
}

.super-cta-eyebrow {
  display: inline-flex;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0059b8;
  font-weight: 700;
  border: 1px solid rgba(0, 137, 255, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}

.super-cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 860;
  font-variation-settings: "wght" 860, "opsz" 14;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  background: linear-gradient(125deg, #004f9c, #0089ff 48%, #ffc72c 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: font-variation-settings 0.3s ease, letter-spacing 0.3s ease;
}

.super-cta-inner p {
  max-width: 56ch;
  margin-inline: auto;
  color: #456b94;
}

.super-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Reveal system */
.hero,
.proof-pill,
.gallery-card,
.pricing-card,
.blog-card,
.super-cta-inner,
.section-title,
.section-kicker,
.about-badges li {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition:
    opacity 0.58s ease,
    transform 0.58s cubic-bezier(0.2, 1, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.hero.is-visible,
.proof-pill.is-visible,
.gallery-card.is-visible,
.pricing-card.is-visible,
.blog-card.is-visible,
.super-cta-inner.is-visible,
.section-title.is-visible,
.section-kicker.is-visible,
.about-badges li.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero.is-visible .hero-lightning {
  animation-duration: 1.1s;
}

.hero:hover .hero-title,
.hero:focus-within .hero-title {
  font-variation-settings: "wght" 900, "opsz" 14;
  letter-spacing: -0.005em;
}

.page-hero-gallery:hover .page-title,
.page-hero-gallery:focus-within .page-title {
  font-variation-settings: "wght" 900, "opsz" 14;
  letter-spacing: 0.005em;
}

.section:hover .section-title {
  font-variation-settings: "wght" 840, "opsz" 13;
  transform: translateY(-1px);
}

.super-cta-inner:hover h2,
.super-cta-inner:focus-within h2 {
  font-variation-settings: "wght" 900, "opsz" 14;
  letter-spacing: 0.002em;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes orbFloatA {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-22px) scale(1.06);
  }
}

@keyframes orbFloatB {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(18px) scale(1.08);
  }
}

@media (max-width: 900px) {
  .fx-grid-overlay {
    opacity: 0.34;
  }

  .fx-orb {
    width: 120px;
    height: 120px;
  }

  .fx-orb-b {
    top: 1220px;
  }
}

@media (max-width: 720px) {
  .section-energy-ticker {
    padding-bottom: 14px;
  }

  .ticker-track p {
    letter-spacing: 0.12em;
    animation-duration: 16s;
  }

  .super-cta-inner {
    border-radius: 20px;
    text-align: left;
  }

  .super-cta-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track p,
  .fx-orb-a,
  .fx-orb-b {
    animation: none;
  }
}

/* Gallery final-stage */
body.page-gallery {
  background:
    radial-gradient(circle at 6% 4%, rgba(0, 170, 255, 0.32), transparent 34%),
    radial-gradient(circle at 94% 90%, rgba(255, 199, 44, 0.35), transparent 30%),
    linear-gradient(180deg, #fcfeff 0%, #e8f4ff 48%, #f6fbff 100%);
}

.apple-chargers-gallery {
  position: relative;
  isolation: isolate;
}

.apple-chargers-gallery .page-hero,
.apple-chargers-gallery .section {
  position: relative;
  z-index: 1;
}

.page-hero-gallery {
  margin-top: 28px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(0, 137, 255, 0.2);
  box-shadow: 0 20px 46px rgba(15, 39, 71, 0.14);
  background:
    radial-gradient(circle at 95% 8%, rgba(255, 199, 44, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(237, 246, 255, 0.9));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
}

.page-hero-copy {
  padding: clamp(6px, 2vw, 20px);
}

.page-hero-gallery .page-title {
  font-size: clamp(2rem, 4.8vw, 4rem);
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  background: linear-gradient(130deg, #0a3a72, #008dff 48%, #ffc72c 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(0, 160, 255, 0.2), 0 0 18px rgba(255, 199, 44, 0.16);
}

.gallery-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.gallery-hero-pills span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(0, 137, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  padding: 7px 12px;
  color: #12416f;
}

.gallery-hero-visual {
  border-radius: 22px;
  border: 1px solid rgba(0, 137, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(8, 60, 116, 0.95), rgba(0, 137, 255, 0.82)),
    radial-gradient(circle at 70% 25%, rgba(255, 199, 44, 0.4), transparent 50%);
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.gallery-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -40deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 2px,
      transparent 2px,
      transparent 16px
    );
}

.gallery-hero-visual .hero-lightning {
  width: 126px;
  height: 126px;
  right: 28px;
  top: 26px;
}

.gallery-controls-panel {
  border: 1px solid rgba(0, 137, 255, 0.19);
  border-radius: 24px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 255, 0.85));
  box-shadow: 0 14px 30px rgba(15, 39, 71, 0.1);
  padding: 18px;
}

.gallery-controls-head {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.gallery-controls-head .section-title {
  margin-bottom: 0;
}

.gallery-count {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f7098;
}

.gallery-grid-premium {
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.page-gallery .gallery-item {
  border: 1px solid rgba(0, 137, 255, 0.28);
  box-shadow: 0 14px 26px rgba(15, 39, 71, 0.11);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.25s ease;
  transition-delay: var(--item-delay, 0ms);
}

.page-gallery .gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-gallery .gallery-item:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 24px 34px rgba(15, 39, 71, 0.18);
}

.page-gallery .gallery-item img {
  height: 250px;
}

.page-gallery .gallery-item-label {
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.page-gallery .lightbox-backdrop {
  background: rgba(1, 16, 34, 0.78);
}

.page-gallery .lightbox-dialog {
  background:
    linear-gradient(140deg, #041f46, #06356e 60%, #074b93);
  border: 1px solid rgba(255, 199, 44, 0.68);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.62);
}

.page-gallery .lightbox-meta {
  background: linear-gradient(
    180deg,
    rgba(4, 31, 70, 0.2),
    rgba(0, 0, 0, 0.18)
  );
}

@media (max-width: 900px) {
  .page-hero-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-hero-visual {
    min-height: 190px;
  }

  .gallery-hero-visual .hero-lightning {
    width: 94px;
    height: 94px;
    right: 18px;
    top: 16px;
  }
}

@media (max-width: 720px) {
  .page-hero-gallery {
    margin-top: 18px;
    padding: 14px;
    border-radius: 20px;
  }

  .gallery-controls-panel {
    border-radius: 18px;
    padding: 14px;
  }

  .gallery-grid-premium {
    gap: 14px;
  }

  .page-gallery .gallery-item img {
    height: 220px;
  }
}

/* Video hero and advanced gallery UX */
.hero-image,
.gallery-hero-visual {
  position: relative;
}

.hero-bg-video,
.gallery-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-video {
  opacity: 0.86;
  filter: saturate(1.14) contrast(1.06);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(3, 22, 49, 0.48), rgba(7, 72, 145, 0.24)),
    radial-gradient(circle at 80% 10%, rgba(255, 199, 44, 0.2), transparent 50%);
}

.gallery-hero-video {
  opacity: 0.64;
  filter: saturate(1.2) contrast(1.08);
}

.lightbox-image-wrapper {
  position: relative;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(4, 29, 63, 0.62);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-nav:hover {
  background: rgba(4, 29, 63, 0.9);
}

.lightbox-thumbs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.lightbox-thumb {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  width: 62px;
  height: 62px;
  background: #031a3a;
  opacity: 0.68;
  cursor: pointer;
  flex: 0 0 auto;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.is-active {
  border-color: rgba(255, 199, 44, 0.96);
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255, 199, 44, 0.45);
}

@media (max-width: 720px) {
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .lightbox-thumb {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video,
  .gallery-hero-video {
    animation: none;
  }
}

/* Ultra flashy mode */
:root {
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  --scroll-progress: 0;
  --hue-shift: 0deg;
  --ticker-speed: 20s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    280px circle at var(--pointer-x) var(--pointer-y),
    rgba(0, 181, 255, 0.14),
    transparent 72%
  );
  transition: background-position 0.05s linear;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: calc(0.1 + var(--scroll-progress) * 0.24);
  background:
    radial-gradient(
      520px circle at calc(100% - var(--pointer-x)) calc(100% - var(--pointer-y)),
      rgba(255, 199, 44, 0.2),
      transparent 70%
    ),
    linear-gradient(
      120deg,
      rgba(0, 140, 255, 0.08),
      rgba(255, 199, 44, 0.08)
    );
  mix-blend-mode: screen;
}

.hero,
.page-hero-gallery,
.super-cta-inner {
  animation: neonBreath 3.8s ease-in-out infinite;
}

.hero-lightning {
  filter: drop-shadow(0 0 18px rgba(255, 215, 64, 0.75))
    drop-shadow(0 0 26px rgba(0, 170, 255, 0.45));
}

.ticker-track {
  position: relative;
  overflow: hidden;
}

.ticker-track::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 36%,
    rgba(255, 255, 255, 0.34) 49%,
    transparent 62%
  );
  animation: tickerFlash 2.7s linear infinite;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 46%;
  height: 320%;
  transform: rotate(26deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  opacity: 0;
}

.btn:hover::after {
  opacity: 1;
  animation: btnShine 0.62s ease-out;
}

.fx-tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition: transform 0.16s ease-out;
  will-change: transform;
}

.fx-spark-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  filter: hue-rotate(var(--hue-shift));
}

.fx-spark {
  position: absolute;
  left: var(--spark-left);
  bottom: -5%;
  width: var(--spark-size);
  height: calc(var(--spark-size) * 2.4);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #85d3ff 45%, #ffc72c);
  box-shadow: 0 0 14px rgba(255, 215, 64, 0.52);
  opacity: 0;
  animation: sparkRise var(--spark-duration) linear var(--spark-delay) infinite;
}

.fx-lightning-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.62),
      transparent 42%
    ),
    radial-gradient(
      circle at 80% 65%,
      rgba(0, 178, 255, 0.54),
      transparent 40%
    );
  mix-blend-mode: screen;
}

.fx-lightning-flash.is-flashing {
  animation: megaFlash 0.24s steps(2, end);
}

.is-stage-hot .section-title,
.is-stage-hot .page-title {
  text-shadow: 0 0 24px rgba(0, 170, 255, 0.22), 0 0 12px rgba(255, 199, 44, 0.2);
}

.is-stage-hot .section-kicker,
.is-stage-hot .hero-collab-tag {
  filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.22));
}

.is-stage-hot .btn.primary {
  box-shadow: 0 0 0 rgba(255, 199, 44, 0.1), 0 10px 30px rgba(255, 199, 44, 0.42);
}

@keyframes neonBreath {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 140, 255, 0), 0 18px 40px rgba(15, 39, 71, 0.14);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 170, 255, 0.28), 0 22px 46px rgba(15, 39, 71, 0.2);
  }
}

@keyframes tickerFlash {
  0% {
    transform: translateX(-180%);
  }
  100% {
    transform: translateX(220%);
  }
}

@keyframes btnShine {
  from {
    transform: translateX(0) rotate(26deg);
  }
  to {
    transform: translateX(360%) rotate(26deg);
  }
}

@keyframes sparkRise {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-120vh) scale(1.05);
    opacity: 0;
  }
}

@keyframes megaFlash {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 0.68;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .fx-spark-layer {
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .hero,
  .page-hero-gallery,
  .super-cta-inner,
  .ticker-track::after,
  .fx-spark,
  .fx-tilt-card,
  .fx-lightning-flash {
    animation: none;
    transform: none;
  }
}

/* Extreme glitch pass */
.hero-title {
  display: grid;
  gap: 0.06em;
  color: #f4fbff;
  text-shadow: 0 2px 0 rgba(3, 31, 66, 0.45), 0 0 14px rgba(0, 178, 255, 0.2);
}

.hero-line {
  position: relative;
  display: inline-block;
  background: none;
  color: #f7fcff;
  -webkit-text-fill-color: #f7fcff;
  text-shadow: 0 2px 0 rgba(4, 29, 63, 0.42), 0 0 10px rgba(0, 170, 255, 0.22);
}

.fx-glitch-heading {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.page-title.fx-glitch-heading {
  background: none;
  color: #083b73;
  -webkit-text-fill-color: #083b73;
  -webkit-text-stroke: 0.5px rgba(240, 249, 255, 0.8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 10px rgba(0, 170, 255, 0.18);
}

.hero-line::before,
.hero-line::after,
.fx-glitch-heading::before,
.fx-glitch-heading::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-line::before,
.fx-glitch-heading::before {
  color: rgba(0, 219, 255, 0.92);
  transform: translateX(1px);
  filter: blur(0.1px);
}

.hero-line::after,
.fx-glitch-heading::after {
  color: rgba(255, 218, 74, 0.95);
  transform: translateX(-1px);
  filter: blur(0.1px);
}

.fx-glitch-heading.is-glitching .hero-line::before,
.fx-glitch-heading.is-glitching::before {
  opacity: 0.5;
  animation: glitchSliceA 0.22s steps(2, end) 2;
}

.fx-glitch-heading.is-glitching .hero-line::after,
.fx-glitch-heading.is-glitching::after {
  opacity: 0.45;
  animation: glitchSliceB 0.2s steps(2, end) 2;
}

.hero-image::before,
.gallery-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-image::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.28;
}

.gallery-hero-visual::after {
  background: linear-gradient(
    110deg,
    transparent 32%,
    rgba(255, 255, 255, 0.34) 48%,
    transparent 64%
  );
  transform: translateX(-180%);
  animation: heroScan 4.4s linear infinite;
}

.fx-grid-overlay {
  animation: gridShift 9.5s linear infinite;
}

@keyframes glitchSliceA {
  0% {
    clip-path: inset(8% 0 72% 0);
    transform: translate(2px, -1px);
  }
  50% {
    clip-path: inset(46% 0 28% 0);
    transform: translate(-1px, 1px);
  }
  100% {
    clip-path: inset(72% 0 6% 0);
    transform: translate(1px, 0);
  }
}

@keyframes glitchSliceB {
  0% {
    clip-path: inset(14% 0 66% 0);
    transform: translate(-2px, 1px);
  }
  50% {
    clip-path: inset(56% 0 18% 0);
    transform: translate(2px, -1px);
  }
  100% {
    clip-path: inset(78% 0 4% 0);
    transform: translate(-1px, 0);
  }
}

@keyframes heroScan {
  0% {
    transform: translateX(-180%);
  }
  100% {
    transform: translateX(240%);
  }
}

@keyframes gridShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-10px, 8px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Color punch upgrade */
body.page-index,
body.page-gallery {
  filter: saturate(1.14) contrast(1.06);
}

.hero-collab-tag,
.proof-pill,
.gallery-hero-pills span {
  background: linear-gradient(
    135deg,
    rgba(0, 162, 255, 0.18),
    rgba(255, 199, 44, 0.2),
    rgba(255, 255, 255, 0.76)
  );
  border-color: rgba(0, 170, 255, 0.34);
}

.section-title::after {
  box-shadow: 0 0 14px rgba(0, 168, 255, 0.35), 0 0 10px rgba(255, 199, 44, 0.26);
}

.btn.primary {
  background: linear-gradient(135deg, #fff39c 0%, #ffd029 46%, #ffb800 100%);
  color: #063169;
}

.ticker-track p {
  color: #006fdd;
  text-shadow: 0 0 12px rgba(0, 175, 255, 0.24), 0 0 14px rgba(255, 199, 44, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-hero-visual::after,
  .fx-grid-overlay,
  .fx-glitch-heading::before,
  .fx-glitch-heading::after,
  .hero-line::before,
  .hero-line::after {
    animation: none;
  }
}

/* Performance adaptive mode */
html.fx-lite body::before,
html.fx-lite body::after {
  display: none;
}

html.fx-lite .fx-grid-overlay,
html.fx-lite .fx-orb,
html.fx-lite .fx-spark-layer,
html.fx-lite .fx-lightning-flash {
  display: none !important;
}

html.fx-lite .hero,
html.fx-lite .page-hero-gallery,
html.fx-lite .super-cta-inner,
html.fx-lite .ticker-track::after,
html.fx-lite .gallery-hero-visual::after,
html.fx-lite .hero::after {
  animation: none !important;
}

html.fx-lite .fx-tilt-card {
  transform: none !important;
  transition: box-shadow 0.2s ease !important;
  will-change: auto !important;
}

html.fx-lite .site-header,
html.fx-lite .lightbox-backdrop,
html.fx-lite .lightbox-nav {
  backdrop-filter: none !important;
}

html.fx-lite body.page-index,
html.fx-lite body.page-gallery {
  filter: none;
}

html.fx-lite .hero-lightning {
  animation: none !important;
}

