/* ─── Nav ───────────────────────────────────────────────────────────── */
.nav--project {
  mix-blend-mode: normal;
  background: transparent;
  justify-content: space-between;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.nav-back svg {
  width: 16px;
  height: 16px;
}

.nav-back:hover {
  color: #fff;
}

.nav-current {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ─── Tags ──────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
.g-hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 10vw 80px;
  border-left: 4px solid #0000FF;
  gap: 4vw;
}

.g-hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.g-hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(72px, 10vw, 150px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 36px;
}

.title-line {
  display: block;
}

.title-line--blue {
  color: #fff;
}

.g-hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* Right-hand hero column. The rule and padding live on the wrapper so the
   brand mark and the section index sit on one continuous edge. */
.g-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 32px;
}

.g-hero-logo {
  display: block;
  width: clamp(44px, 4.5vw, 64px);
  height: auto;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: content-box;
}

.g-hero-index {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
}

.g-index-item {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.3);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}

.g-index-item:last-child {
  border-bottom: none;
}

.g-index-item:hover {
  color: #fff;
}

/* ─── Project sections ───────────────────────────────────────────────── */
.g-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  align-items: center;
  padding: 100px 10vw;
  gap: 6vw;
  border-left: 4px solid transparent;
  position: relative;
}

.g-project::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0000FF;
  opacity: 0;
  transition: opacity 0.4s;
}

.g-project:hover::before {
  opacity: 1;
}

.g-project--alt {
  background: #0a0a0a;
}

/* Large background number */
.g-project-number {
  position: absolute;
  top: 40px;
  right: 8vw;
  font-size: clamp(120px, 18vw, 280px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.g-project-header {
  margin-bottom: 32px;
}

.g-project-title {
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 12px;
}

.title-chapter {
  color: rgba(255, 255, 255, 0.35);
}

.g-project-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.g-project-desc {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 44px;
  max-width: 520px;
}

.g-project-desc a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: text-decoration-color 0.2s ease;
}

.g-project-desc a:hover {
  text-decoration-color: #fff;
}

.g-project-desc em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ─── Callouts ───────────────────────────────────────────────────────── */
.g-callouts {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.g-callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-width: 140px;
}

.g-callout--accent {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.g-callout-value {
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.g-callout--accent .g-callout-value {
  color: #fff;
}

.g-callout-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* ─── Chips ──────────────────────────────────────────────────────────── */
.g-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.chip--active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ─── Visuals ────────────────────────────────────────────────────────── */
.g-project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.mock-phone-frame {
  width: 220px;
  background: #1a1a1a;
  border-radius: 36px;
  border: 6px solid #2a2a2a;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.mock-phone-screen {
  width: 100%;
  display: block;
}

/* — Assistant visual — */
.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.visual-device {
  border-radius: 12px;
  overflow: hidden;
}

.visual-device--phone {
  grid-row: span 2;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-device--home {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-device--tv {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.device-screen {
  width: 100%;
  padding: 20px;
}

.answer-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.answer-card--dark {
  background: #111;
}

.answer-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
}

.answer-big {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.answer-unit {
  font-size: 18px;
}

.answer-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

/* Google Home ring animation */
.device-screen--ring {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 80px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.ring--outer {
  width: 64px;
  height: 64px;
  opacity: 0.15;
  animation-delay: 0.3s;
}

.ring--inner {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.ring-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.2;
  }
}

/* — Fi visual — */
.fi-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.bar {
  width: 18px;
  background: #fff;
  border-radius: 3px 3px 0 0;
}

.bar--1 {
  height: 20%;
  opacity: 0.2;
}

.bar--2 {
  height: 40%;
  opacity: 0.35;
}

.bar--3 {
  height: 60%;
  opacity: 0.55;
}

.bar--4 {
  height: 80%;
  opacity: 0.75;
}

.bar--5 {
  height: 100%;
}

.network-labels {
  display: flex;
  align-items: center;
  gap: 16px;
}

.network-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

.network-label--active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.network-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 18px;
}

.patent-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

.patent-badge--2 {
  margin-top: -16px;
  align-self: flex-end;
}

/* — Regulatory visual — */
.reg-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.reg-block {
  padding: 20px 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reg-block--1 {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-block--2 {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.reg-block--3 {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 20px;
}

/* — Shopify visual — */
.shopify-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.brand-pill {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  padding: 18px 36px;
  border-radius: 100px;
}

.brand-pill--google {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-pill--shopify {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-connector {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
}

.value-tag {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.7);
}

/* — Integrations visual — */
.integration-nodes {
  position: relative;
  width: 300px;
  height: 300px;
}

.i-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.i-node {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 100px;
  transform: translate(-50%, -50%);
}

.i-node--center {
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  padding: 14px 22px;
  z-index: 2;
}

.i-node--1 {
  top: 13%;
  left: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.i-node--2 {
  top: 60%;
  left: 87%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.i-node--3 {
  top: 60%;
  left: 13%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.i-node--4 {
  top: 87%;
  left: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.g-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 10vw;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn--light {
  color: rgba(255, 255, 255, 0.5);
  border-color: #0000FF;
}

.btn--light:hover {
  color: #fff;
  border-color: #0000FF;
  background: rgba(0, 0, 255, 0.12);
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {

  .g-hero,
  .g-project {
    grid-template-columns: 1fr;
    padding: 100px 6vw 60px;
  }

  .g-hero-index {
    display: none;
  }

  .g-project-visual {
    display: none;
  }

  .g-project-number {
    font-size: 80px;
    top: 20px;
    right: 6vw;
  }

  .g-footer {
    flex-direction: column;
    gap: 16px;
    padding: 48px 6vw;
  }
}

/* ─── Gallery ────────────────────────────────────────────────────────── */
.g-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.g-gallery-main {
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.g-gallery-main img.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.g-gallery-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 0;
  cursor: pointer;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.4;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.thumb-btn:hover {
  opacity: 0.8;
}

.thumb-btn.active {
  opacity: 1;
  border-color: #fff;
}