/* ==========================================================================
   CYKNOX INFOTECH - refine.css
   Design refinement layer. Loaded after main.css + custom.css.
   Goal: keep the cyberpunk identity, drop the decorative noise, raise
   readability, and make motion feel deliberate.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-base: 320ms var(--ease-out);

  --card-shadow-hover: 0 24px 48px -24px rgba(10, 14, 20, 0.25);
  --color-primary-hover: #08664A;
  --color-line: rgba(10, 14, 20, 0.07);
}

.dark {
  --card-shadow-hover: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
  --color-primary-hover: #2FE0A8;
  --color-line: rgba(255, 255, 255, 0.045);
  --color-text-muted: #98A2B3;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  line-height: 1.65;
}

main :is(h1, h2, h3, p, li, dt, dd) {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: var(--color-void);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   Remove decorative noise
   -------------------------------------------------------------------------- */
.scanline,
.hud-scanlines,
.nav-status,
.bracket-wrap > .bc-tl,
.bracket-wrap > .bc-tr,
.bracket-wrap > .bc-bl,
.bracket-wrap > .bc-br {
  display: none !important;
}

.cyber-scanline::after {
  content: none;
}

.btn-load-more::before,
.btn-load-more::after {
  content: none;
}

/* Calmer ambient background */
.gradient-bg::before {
  opacity: 0.7;
  animation-duration: 40s;
}

/* --------------------------------------------------------------------------
   Shape language: soft radius everywhere, clipped corner kept only on
   primary buttons as the one signature detail.
   -------------------------------------------------------------------------- */
.service-card,
.project-card,
.product-card,
.blog-card,
.usp-card,
.testimonial-card,
.pricing-card,
.stat-card,
.faq-item,
.gallery-item,
.info-banner,
.pull-quote,
.author-bio,
.form-success,
.project-nav-item,
.post-content img,
.case-section,
.include-item,
.post-sidebar-card,
.process-usp-card,
.project-hero-img,
.service-detail-card,
.svc-pricing-card,
.team-member-card,
.nav-dropdown-menu {
  clip-path: none;
  border-radius: var(--radius-lg);
}

.service-detail-card-img,
.author-bio-avatar {
  clip-path: none;
  border-radius: var(--radius-md);
}

.chip-icon,
.contact-info-icon,
.process-step-node,
.theme-toggle,
.nav-hamburger,
.mobile-nav-close,
.footer-social-link,
.social-share-link,
.view-toggle,
.view-toggle-btn,
.pricing-toggle,
.pricing-tab,
.filter-pill,
.nav-dropdown-item,
.form-input,
.form-select,
.form-textarea,
.newsletter-input,
.newsletter-btn,
.btn-load-more,
.btn-ghost,
.btn-secondary {
  clip-path: none;
  border-radius: var(--radius-sm);
}

.timeline-dot {
  clip-path: none;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3 {
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-header.center .section-label::before,
.cta-banner .section-label::before {
  display: none;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section.pt-0 {
  padding-top: 0;
}

.preview-header {
  margin-bottom: 3rem;
  align-items: flex-end;
}

.preview-header .section-title {
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.75rem 0.6rem 1.25rem;
  transition:
    transform 450ms var(--ease-out),
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
  will-change: transform;
}

.site-header.scrolled {
  background: rgba(10, 12, 18, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
}

:root:not(.dark) .site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 14, 20, 0.08);
  box-shadow: 0 12px 32px -18px rgba(10, 14, 20, 0.25);
}

.site-header.nav-hidden {
  transform: translateY(calc(-100% - 1.5rem));
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-line);
}

.nav-link.active {
  color: var(--color-text);
}

.nav-link::after {
  left: 50%;
  right: auto;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform var(--transition-base);
}

.nav-link:hover::after {
  transform: translateX(-50%) scale(0);
}

.nav-link.active::after {
  transform: translateX(-50%) scale(1);
}

.nav-dropdown .fa-chevron-down {
  transition: transform var(--transition-base);
}

.nav-dropdown.is-open .fa-chevron-down {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  top: calc(100% + 0.75rem);
  padding: 0.4rem;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 220ms ease, transform 320ms var(--ease-out), visibility 220ms;
}

.nav-dropdown-menu[hidden] {
  display: none;
}

.nav-dropdown-menu::before {
  /* hover bridge so the menu doesn't close in the gap */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  transform: translateY(0) scale(1);
}

.nav-dropdown-item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-muted);
}

.nav-dropdown-item:hover {
  color: var(--color-text);
  background: var(--color-line);
}

.nav-right {
  gap: 0.5rem;
}

.nav-cta-btn {
  margin-right: 0 !important;
}

.theme-toggle,
.nav-hamburger {
  background: transparent;
}

/* Mobile nav: full-height sheet with staggered links */
.mobile-nav {
  width: min(380px, 88vw);
  height: 100vh;
  height: 100dvh;
  padding: 5.5rem 1.75rem 2rem;
  border-left: 1px solid var(--color-border);
  visibility: hidden;
  transition: transform 500ms var(--ease-out), visibility 0s linear 500ms;
  overscroll-behavior: contain;
}

/* Shadow and tab stops only exist while open, so nothing leaks past the screen edge */
.mobile-nav.open {
  visibility: visible;
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.6);
  transition: transform 500ms var(--ease-out), visibility 0s;
}

/* A catch-all transition here would fade the inherited visibility and block focus on open */
.mobile-nav-close {
  transition-property: color, background-color, border-color;
}

.mobile-nav-overlay {
  background: rgba(3, 5, 8, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 400ms ease, visibility 400ms;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--color-text);
  padding: 0.85rem 0;
  opacity: 0;
  transform: translateX(16px);
  transition:
    color var(--transition-fast),
    opacity 400ms ease,
    transform 500ms var(--ease-out);
}

.mobile-nav-sub .mobile-nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.7rem 0;
}

.mobile-nav .cy-style-3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: none;
  padding: 1.75rem 0 0.25rem;
}

.mobile-nav.open .mobile-nav-link {
  opacity: 1;
  transform: none;
}

.mobile-nav-sub {
  padding-left: 0;
}

.mobile-nav.open .mobile-nav-link:nth-of-type(1) { transition-delay: 80ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(2) { transition-delay: 120ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(3) { transition-delay: 160ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(4) { transition-delay: 200ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(5) { transition-delay: 240ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(6) { transition-delay: 280ms; }
.mobile-nav.open .mobile-nav-link:nth-of-type(7) { transition-delay: 320ms; }
.mobile-nav.open .mobile-nav-sub .mobile-nav-link { transition-delay: 360ms; }

.mobile-nav-cta {
  margin-top: 2rem;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.6rem;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.btn-sm {
  font-size: 0.72rem;
  padding: 0.6rem 1.1rem;
}

.btn i {
  transition: transform var(--transition-base);
}

.btn:hover .fa-arrow-right,
.btn:hover .fa-arrow-up-right-from-square {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:hover,
.btn-primary.glitching {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-void);
  box-shadow: 0 10px 30px -10px var(--color-glow-strong);
  transform: translateY(-1px);
  animation: none;
  opacity: 1;
}

.btn-ghost {
  color: var(--color-text);
  border-color: var(--color-border);
  background: transparent;
}

.dark .btn-ghost {
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-line);
  border-color: var(--color-primary);
  box-shadow: none;
  opacity: 1;
}

.btn-load-more:hover {
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */
.chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  clip-path: none;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: var(--color-text-muted);
  border-color: var(--color-border);
  background: var(--color-line);
}

.dark .chip {
  border-color: rgba(255, 255, 255, 0.1);
}

.chip:hover {
  box-shadow: none;
}

.chip-secondary,
.dark .chip-secondary {
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.chip-icon {
  background: transparent;
  border-color: var(--color-border);
}

.chip-icon:hover,
.service-card:hover .chip-icon {
  box-shadow: none;
  background: var(--color-glow);
  border-color: var(--color-border-neon);
}

/* --------------------------------------------------------------------------
   Cards - shared behaviour
   -------------------------------------------------------------------------- */
.service-card,
.project-card,
.product-card,
.blog-card,
.usp-card,
.testimonial-card,
.team-member-card,
.process-usp-card,
.pricing-card,
.svc-pricing-card,
.service-detail-card,
.include-item {
  transition:
    transform 500ms var(--ease-out),
    border-color 300ms ease,
    box-shadow 500ms var(--ease-out),
    background-color 300ms ease;
}

.service-card:hover,
.project-card:hover,
.product-card:hover,
.blog-card:hover,
.team-member-card:hover,
.pricing-card:hover,
.svc-pricing-card:hover,
.service-detail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 194, 138, 0.35);
  box-shadow: var(--card-shadow-hover);
}

.usp-card:hover,
.testimonial-card:hover,
.process-usp-card:hover,
.include-item:hover {
  border-color: rgba(17, 194, 138, 0.3);
  box-shadow: none;
}

/* Cursor-following highlight (set by main.js on fine pointers) */
.has-spotlight {
  --mx: 50%;
  --my: 50%;
}

.has-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(17, 194, 138, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 0;
}

.has-spotlight:hover::after {
  opacity: 1;
}

.project-card-thumb img,
.product-card-thumb img,
.blog-card-thumb img,
.team-thumb img {
  transition: transform 900ms var(--ease-out);
}

.project-card:hover .project-card-thumb img,
.product-card:hover .product-card-thumb img,
.blog-card:hover .blog-card-thumb img {
  transform: scale(1.035);
}

.project-card-thumb,
.product-card-thumb,
.blog-card-thumb {
  border-bottom: 1px solid var(--color-border);
}

.project-card-body,
.product-card-body,
.blog-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
}

.project-card-title,
.product-card-title,
.blog-card-title,
.usp-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.project-card-title a,
.blog-card-title a {
  color: inherit;
}

.project-card-title a::before,
.blog-card-title a::before {
  /* make the whole card clickable via the title link */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-card-footer .btn,
.product-card-footer .btn {
  position: relative;
  z-index: 2;
}

.product-card-footer {
  flex-wrap: wrap;
}

.product-card-footer .btn {
  flex-shrink: 0;
}

.project-card-desc,
.product-card-desc,
.blog-card-excerpt,
.usp-card-desc,
.service-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-client {
  font-size: 0.72rem;
}

.blog-card-meta {
  font-size: 0.7rem;
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.blog-card-meta > span:not(.chip) + span:not(.chip)::before {
  content: '·';
  margin-right: 0.75rem;
  opacity: 0.6;
}

.blog-card-read-more {
  font-size: 0.72rem;
  transition: gap var(--transition-base);
}

.blog-card:hover .blog-card-read-more {
  gap: 0.7rem;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.testimonial-rating {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1rem;
  color: #a67c00;
  font-size: min(1rem, 5vw);
  line-height: 1;
}

.dark .testimonial-rating {
  color: #facc15;
}

.testimonial-text {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  flex: 1;
}

.testimonial-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text);
  font-style: normal;
}

.testimonial-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background:
    radial-gradient(60% 120% at 50% 120%, var(--color-glow-strong), transparent 70%),
    var(--color-panel-alt);
}

.cta-banner::before {
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.cta-banner-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.cta-banner-desc {
  font-size: 1.05rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   FAQ - smooth height via grid rows
   -------------------------------------------------------------------------- */
.faq-question {
  font-family: var(--font-body);
  font-weight: 500;
}

.faq-question:hover {
  background: var(--color-panel);
}

.faq-answer {
  transition: max-height 450ms var(--ease-in-out);
}

.faq-item.open .faq-answer {
  max-height: var(--faq-height, none);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-col-title {
  color: var(--color-text-muted);
  opacity: 1;
}

.footer-link,
.footer-contact-item {
  font-size: 0.9rem;
}

.footer-link {
  font-family: var(--font-body);
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-base);
}

.footer-link:hover {
  transform: translateX(3px);
}

.footer-copyright,
.footer-legal-link {
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--nav-height) + 2.5rem) 0 4rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

/* ==========================================================================
   HOME
   ========================================================================== */

/* Hero */
.hero-home {
  padding-bottom: 5rem;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 10%, transparent 70%);
}

.hero-layout {
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-content {
  min-width: 0;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 1;
  box-shadow: 0 0 0 4px var(--color-glow);
}

.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-accent {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  max-width: 560px;
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-proof-value {
  order: -1;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}

.hero-proof-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Hero entrance (home.js adds .is-in to <body>) */
.js-motion .hero-animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms ease, transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 100ms);
}

.js-motion .hero-visual {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1400ms ease 300ms, transform 1600ms var(--ease-out) 300ms;
}

.js-motion.is-in .hero-animate,
.js-motion.is-in .hero-visual {
  opacity: 1;
  transform: none;
}

/* Calmer HUD */
.hud-mech-spin {
  animation-duration: 18s;
}

.hud-bracket {
  animation: none;
}

.core-pulse {
  animation-duration: 4s;
}

.hud-parallax-layer {
  transition: none;
}

.hero-indicator {
  animation: none;
}

/* Services - editorial index list */
.service-list {
  border-top: 1px solid var(--color-border);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.35fr) 3rem;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  isolation: isolate;
}

.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--color-glow), transparent 85%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}

.service-row:hover {
  color: var(--color-text);
  opacity: 1;
}

.service-row:hover::before {
  transform: scaleX(1);
}

.service-row-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary);
  letter-spacing: 0.08em;
}

.service-row-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 500ms var(--ease-out);
}

.service-row:hover .service-row-title {
  transform: translateX(6px);
}

.service-row-desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.service-row-arrow {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition:
    transform 500ms var(--ease-out),
    background-color 300ms ease,
    color 300ms ease,
    border-color 300ms ease;
}

.dark .service-row-arrow {
  border-color: rgba(255, 255, 255, 0.12);
}

.service-row:hover .service-row-arrow {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-void);
  transform: rotate(-45deg);
}

.service-list-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2rem;
  color: var(--color-text-muted);
}

.service-list-note p {
  color: inherit;
}

.service-list-note strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Why us */
.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.why-layout > *,
.detail-hero-grid > *,
.pricing-card > * {
  min-width: 0;
}

.why-intro {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.why-stat {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-neon);
}

.why-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.why-stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.why-list {
  counter-reset: why;
}

.why-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.why-item:first-child {
  padding-top: 0.25rem;
}

.why-item::before {
  counter-increment: why;
  content: counter(why, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary);
  padding-top: 0.3rem;
}

.why-item-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.why-item-desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.store-preview-note {
  font-size: 0.75rem;
}

/* ==========================================================================
   Scroll reveal (classes added by main.js only when motion is allowed)
   ========================================================================== */
.reveal.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms ease,
    transform 1000ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .service-row {
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.2fr) 2.75rem;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-height: 84px;
  }

  .hero-home {
    padding-top: calc(var(--nav-height) + 2.5rem);
    padding-bottom: 3.5rem;
  }

  .hero-home::before {
    -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, #000 10%, transparent 70%);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-content {
    max-width: none;
  }

  /* HUD as a quiet backdrop instead of a second screen of content */
  .hero-home .hero-visual,
  .hero-home .hero-circuit-container {
    display: flex !important;
    position: absolute !important;
    top: calc(var(--nav-height) - 1rem);
    right: -90px;
    width: 300px !important;
    height: 300px !important;
    margin: 0 !important;
    z-index: 0;
    pointer-events: none;
  }

  .js-motion.is-in .hero-home .hero-visual,
  .hero-home .hero-visual {
    opacity: 0.22 !important;
  }

  .hero-indicator {
    display: none;
  }

  .why-layout {
    grid-template-columns: 1fr;
  }

  .why-intro {
    position: static;
  }

  .service-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    grid-template-areas:
      'num title arrow'
      '.   desc  desc';
    row-gap: 0.5rem;
    padding: 1.5rem 0;
  }

  .service-row-num { grid-area: num; }
  .service-row-title { grid-area: title; }
  .service-row-desc { grid-area: desc; }
  .service-row-arrow { grid-area: arrow; width: 2.4rem; height: 2.4rem; }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 4.5rem;
  }

  .site-header {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
  }

  .nav-logo img {
    height: 30px;
  }

  .preview-header {
    margin-bottom: 2rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header.center {
    text-align: left;
  }

  .section-header.center .section-label::before {
    display: block;
  }

  .section-header.center .section-desc {
    margin: 0;
  }

  .cy-style-64,
  .cy-style-67 {
    grid-template-columns: 1fr;
  }

  .project-card-body,
  .product-card-body,
  .blog-card-body,
  .testimonial-card {
    padding: 1.25rem;
  }

  .footer-main {
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.1rem, 9.5vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.7rem, 7.5vw, 2rem);
  }

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

  .hero-content {
    text-align: left;
  }

  .hero-eyebrow {
    justify-content: flex-start;
  }

  .hero-eyebrow::before {
    display: block;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.25rem;
  }

  .hero-proof-value {
    font-size: 1.35rem;
  }

  .hero-proof-label {
    font-size: 0.6rem;
    line-height: 1.4;
  }

  /* main.css forces every .btn to 100% here - keep inline links compact */
  .preview-header .btn,
  .service-list-note .btn {
    width: auto;
  }

  .cta-banner-actions {
    align-items: stretch;
  }

  .why-stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr));
    gap: 0.75rem;
  }

  .why-item {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main > div:last-child {
    grid-column: 1 / -1;
  }
}

/* Touch devices: no hover lift (avoids sticky hover states) */
@media (hover: none) {
  .service-card:hover,
  .project-card:hover,
  .product-card:hover,
  .blog-card:hover,
  .team-member-card:hover,
  .pricing-card:hover,
  .svc-pricing-card:hover,
  .service-detail-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal,
  .js-motion .hero-animate,
  .js-motion .hero-visual,
  .mobile-nav-link {
    opacity: 1 !important;
    transform: none !important;
  }

  .hud-mech-spin,
  .core-pulse,
  .glitch-layer,
  .hud-progress-bar {
    animation: none !important;
  }

  .site-header.nav-hidden {
    transform: none;
  }
}

/* ==========================================================================
   INNER PAGES
   ========================================================================== */

/* Remaining clipped utility boxes -> radius */
.cy-style-15,
.cy-style-16,
.cy-style-25,
.cy-style-40,
.cy-style-46,
.cy-style-51,
.cy-style-89,
.cy-style-103 {
  clip-path: none;
  border-radius: var(--radius-lg);
}

.cy-style-86 {
  clip-path: none;
  border-radius: var(--radius-md);
}

.cy-style-110 {
  clip-path: none;
  border-radius: 50%;
}

/* Boxed icon-card grids -> open editorial columns */
.usp-card,
.process-usp-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  padding: 1.5rem 0 0;
  gap: 0.75rem;
}

.usp-card:hover,
.process-usp-card:hover {
  border-color: var(--color-border);
  border-top-color: var(--color-primary);
}

.usp-card .chip-icon,
.process-usp-card .chip-icon {
  width: auto;
  height: auto;
  border: none;
  background: none;
  justify-content: flex-start;
  font-size: 1.1rem;
}

.usp-card:hover .chip-icon {
  background: none;
}

.process-usp-title,
.usp-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.process-usp-desc,
.usp-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Services page process: numbered nodes on a hairline */
.process-step-node {
  border-radius: 50%;
  background: var(--color-void);
}

.process-step:not(:last-child)::after {
  background: var(--color-border);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.process-step-desc {
  font-size: 0.9rem;
}

/* Service detail rows on services page */
.service-detail-card {
  overflow: hidden;
}

/* Team monograms (until real photos are added) */
.team-thumb--initials {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(120% 90% at 30% 20%, var(--color-glow-strong), transparent 60%),
    var(--color-panel-alt);
  border-bottom: 1px solid var(--color-border);
}

.team-thumb--initials span {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text);
  opacity: 0.9;
  transition: transform 700ms var(--ease-out);
}

.team-member-card:hover .team-thumb--initials span {
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .team-member-join-card {
    padding: 1.25rem 1rem;
  }

  .team-member-join-card .btn {
    max-width: 100%;
    padding-inline: 0.75rem;
    white-space: normal;
  }
}

.founder-initials {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.founder-initials span {
  font-size: clamp(5rem, 10vw, 8rem);
}

.team-card-title {
  font-family: var(--font-display);
}

.team-role-text {
  font-size: 0.7rem;
}

/* Timeline */
.timeline {
  --timeline-dot-left: -2.65rem;
  --timeline-dot-top: 0.4rem;
  --timeline-item-gap: 3rem;
}

.timeline::before,
.timeline-item:last-child::before {
  content: none;
}

.timeline-item {
  margin-bottom: var(--timeline-item-gap);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(var(--timeline-dot-left) + 5px);
  top: calc(var(--timeline-dot-top) + 5px);
  width: 1px;
  height: calc(100% + var(--timeline-item-gap));
  transform: translateX(-50%);
  background: var(--color-border-neon);
  pointer-events: none;
}

.timeline-dot {
  left: var(--timeline-dot-left);
  top: var(--timeline-dot-top);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.timeline-desc {
  font-size: 0.95rem;
}

/* Legal pages */
.legal-content h2 {
  font-size: 1.35rem;
}

.legal-content > h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content a {
  overflow-wrap: anywhere;
}

.pricing-toggle {
  max-width: 100%;
  align-items: stretch;
}

.pricing-tab {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pricing-card {
  padding: clamp(1rem, 4vw, 2.5rem);
}

.pricing-price {
  font-size: clamp(1.75rem, calc(1rem + 6vw), 2.5rem);
}

.pricing-price-wrap {
  flex-wrap: wrap;
}

.error-code {
  font-size: clamp(min(5rem, 40vw), 30vw, 14rem);
}

.pricing-asterisk {
  margin-inline-start: 0.08em;
  font-size: 0.6em;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
  color: inherit;
  text-decoration: none;
}

.pricing-asterisk:hover {
  color: var(--color-primary);
  opacity: 1;
}

#pricing-starting-note {
  scroll-margin-top: calc(var(--nav-height) + 2rem);
}

/* Error pages */
.error-sub {
  letter-spacing: 0.16em;
}

@media (max-width: 768px) {
  .usp-card,
  .process-usp-card {
    padding-top: 1.25rem;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding-bottom: 2rem;
  }

  .timeline-year {
    text-align: left;
    padding-top: 0;
    margin-bottom: 0;
  }

  .timeline-content {
    padding-left: 0;
  }
}

/* ==========================================================================
   DETAIL PAGES (service / project / product / post)
   ========================================================================== */
.detail-hero {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.detail-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.detail-lead {
  max-width: 54ch;
  margin-bottom: 2rem;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.detail-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-facts span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.detail-facts strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.detail-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  background: var(--color-panel);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-media {
  aspect-ratio: auto;
}

.product-hero-media img {
  height: auto;
  object-fit: contain;
}

.detail-para + .detail-para {
  margin-top: 1rem;
}

.check-list {
  display: flex;
  flex-direction: column;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.5;
}

.check-list li i {
  color: var(--color-primary);
  font-size: 0.85rem;
  padding-top: 0.25rem;
}

.check-list--compact li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: none;
  color: var(--color-text-muted);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.offer-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  transition: border-color 300ms ease;
}

.offer-item:hover {
  border-top-color: var(--color-primary);
}

.offer-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-primary);
}

.offer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.6rem 0 0.5rem;
}

.offer-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 300ms ease, transform 500ms var(--ease-out);
}

.package-card:hover {
  border-color: rgba(17, 194, 138, 0.35);
}

.package-card.is-featured {
  border-color: var(--color-border-neon);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--color-glow), transparent 70%),
    var(--color-panel);
}

.package-badge {
  position: absolute;
  top: -0.7rem;
  left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-void);
}

.package-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.package-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0.75rem 0 0.5rem;
  line-height: 1.1;
}

.package-price small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.package-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.package-card .check-list {
  flex: 1;
  margin-bottom: 1.5rem;
}

.package-cta {
  width: 100%;
}

@media (max-width: 1024px) {
  .offer-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 640px) {
  .offer-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .detail-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .detail-facts strong {
    font-size: 0.92rem;
  }

  .package-card {
    padding: 1.75rem 1.5rem;
  }
}

/* Product detail */
.product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.product-price-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.product-price-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.spec-table div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-table dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-top: 0.15rem;
}

.spec-table dd {
  font-size: 0.95rem;
  color: var(--color-text);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.shot:hover img {
  transform: scale(1.03);
}

.shot figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--color-border);
}

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

@media (max-width: 560px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }
}

/* Project case study */
.project-hero {
  padding-bottom: 3rem;
}

.project-title {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.project-meta dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.project-meta dd {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.7);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-alt);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.dark .browser-bar span {
  background: rgba(255, 255, 255, 0.14);
}

.browser-bar em {
  margin-left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--color-text-muted);
}

.browser-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.project-prose p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-text);
}

.project-prose p + p {
  margin-top: 1.25rem;
  color: var(--color-text-muted);
}

.case-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.case-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

.highlight-cloud {
  margin-top: 0;
  margin-bottom: 2rem;
}

.project-preview-window {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-panel-alt);
}

.project-preview-window:focus-visible {
  outline-offset: -3px;
}

.project-preview img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  transition: object-position 800ms var(--ease-out);
}

.project-preview:hover img {
  transform: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-preview-window:hover img,
  .project-preview-window:focus-visible img {
    object-position: center bottom;
    transition-duration: 10s;
    transition-timing-function: linear;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .project-preview-window {
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .project-preview img {
    height: auto;
    transition: none;
  }
}

.project-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-pager a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  transition: border-color 300ms ease, background-color 300ms ease;
}

.project-pager a:last-child {
  text-align: right;
}

.project-pager a:hover {
  border-color: var(--color-border-neon);
  background: var(--color-line);
  opacity: 1;
  color: var(--color-text);
}

.project-pager span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.project-pager strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
}

/* Blog post */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1100;
}

.post-container {
  max-width: 880px;
}

.post-hero {
  padding-bottom: 2.5rem;
}

.post-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.post-excerpt {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.post-byline strong {
  color: var(--color-text);
  font-weight: 600;
}

.post-avatar {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-void);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.post-avatar--lg {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.post-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin: 0 0 3rem;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 4rem;
  padding-bottom: 5rem;
}

.project-cover,
.post-cover,
.post--text .post-layout {
  margin-block-start: clamp(2rem, 4vw, 4rem);
}

.post-toc {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  align-self: start;
}

.post-toc-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.post-toc ol {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-left: 1px solid var(--color-border);
  padding-left: 1rem;
}

.post-toc a {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.post-toc a:hover {
  color: var(--color-primary);
}

.post-body > p:first-child {
  font-size: 1.15rem;
  color: var(--color-text);
}

.post-body h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin: 3rem 0 1rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.post-body h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}

.post-body p,
.post-body li {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-body ol {
  list-style: decimal;
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.post-body ol li {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.post-body ol li::marker {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.post-body strong {
  color: var(--color-text);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: var(--color-line);
  color: var(--color-primary);
}

.post-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--color-primary);
  background: var(--color-line);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--color-text);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 3rem 0 1.5rem;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.post-share span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-right: 0.5rem;
}

.post-share a {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.post-share a:hover {
  color: var(--color-void);
  background: var(--color-primary);
  border-color: var(--color-primary);
  opacity: 1;
}

.post-author {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.post-author > :last-child {
  flex: 1 1 12rem;
  min-width: 0;
}

.post-author-name {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.post-author-bio {
  font-size: 0.95rem !important;
  color: var(--color-text-muted);
  margin: 0 !important;
}

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

  .post-toc {
    position: static;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 768px) {
  .project-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-split,
  .project-pager {
    grid-template-columns: 1fr;
  }

  .project-pager a:last-child {
    text-align: left;
  }

  .post-body p,
  .post-body li {
    font-size: 1rem;
  }
}

/* Direct contact: use the same surfaces and type as the rest of the site. */
.contact-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.contact-method-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
}

.contact-method-card:hover,
.contact-method-card:focus-within {
  border-color: var(--color-border-neon);
}

.contact-method-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-glow);
  color: var(--color-primary);
  font-size: 1.25rem;
}

.contact-method-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.contact-method-description {
  max-width: 48ch;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.contact-method-value {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.contact-method-action {
  margin-top: auto;
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  text-align: center;
}

.contact-product-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border-neon);
  border-radius: var(--radius-md);
  background: var(--color-glow);
  overflow-wrap: anywhere;
}

.contact-map {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  overflow: hidden;
}

.contact-map iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
}

.dark .contact-map iframe {
  filter: invert(90%) hue-rotate(180deg) grayscale(30%) contrast(120%);
}

.contact-info-item > div,
.contact-layout > *,
.form-group {
  min-width: 0;
}

.contact-info-value,
.footer-contact-item {
  overflow-wrap: anywhere;
}

@media (min-width: 700px) {
  .contact-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A missing article cover is a text card, never a sample photograph. */
.blog-card--text .blog-card-body {
  min-width: 0;
  padding: 1.75rem;
}

.blog-grid.list-view .blog-card--text {
  grid-template-columns: minmax(0, 1fr);
}

.blog-grid.list-view .blog-card--text .blog-card-body {
  margin-left: 0;
}

/* Let service grids and long labels reflow when visitors enlarge text. */
.service-detail-card > * { min-width: 0; }
.breadcrumb { flex-wrap: wrap; }
.breadcrumb > [aria-current="page"] { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .service-detail-card { grid-template-columns: minmax(0, 1fr); padding: clamp(20px, 5vw, 40px); }
}

/* Motion preferences preserve the final visual state of each component. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gradient-bg::before,
  .errorgradient-bg::before,
  .scanline,
  .status-dot,
  .spin-slow,
  .spin-fast-reverse,
  .core-pulse,
  .circuit-path,
  .circuit-node,
  .glitch-rect,
  .glitch-polygon,
  .glitch-cyan,
  .glitch-magenta,
  .glitch-slice,
  .matrix-text,
  .hero-indicator,
  .typewriter-cursor,
  .typing-cursor,
  .scroll-hint::after,
  .error-code,
  .btn-primary:hover {
    animation: none;
  }

  .circuit-path {
    stroke-dashoffset: 0;
  }

  .scanline,
  .matrix-code-container {
    display: none;
  }

  .site-header,
  .skip-link,
  .nav-dropdown-menu,
  .nav-dropdown .fa-chevron-down,
  .mobile-nav,
  .mobile-nav.open,
  .mobile-nav-overlay,
  .mobile-nav-link,
  .faq-answer,
  .faq-icon,
  .reveal.reveal,
  .js-motion .hero-animate,
  .js-motion .hero-visual,
  .hud-parallax-layer,
  .btn,
  .service-card,
  .project-card,
  .project-card img,
  .blog-card,
  .blog-card img,
  .product-card,
  .product-card img,
  .pricing-card,
  .team-member-card,
  .service-detail-card,
  .gallery-item img,
  .service-row::before,
  .service-row-title,
  .service-row-arrow,
  .shot img,
  .team-thumb--initials span,
  .footer-link,
  .job-card {
    transition: none;
    transition-delay: 0s;
  }

  .btn:hover,
  .service-card:hover,
  .project-card:hover,
  .project-card:hover img,
  .blog-card:hover,
  .blog-card:hover img,
  .product-card:hover,
  .product-card:hover img,
  .pricing-card:hover,
  .team-member-card:hover,
  .service-detail-card:hover,
  .gallery-item:hover img,
  .service-row:hover .service-row-title,
  .service-row:hover .service-row-arrow,
  .shot:hover img,
  .team-member-card:hover .team-thumb--initials span,
  .footer-link:hover,
  .job-card:hover {
    transform: none;
  }
}
