/* Portfolio system — warm dark, editorial type, mobile-first */
:root {
  --bg: #0a0908;
  --bg-elevated: #121110;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f4;
  --text-muted: #a8a29e;
  --accent: #ea9c3b;
  --accent-soft: rgba(234, 156, 59, 0.12);
  --accent-glow: rgba(234, 156, 59, 0.2);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1120px, 100% - 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1001;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.45s var(--ease);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  width: var(--container);
  margin-inline: auto;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.logo-dot {
  color: var(--accent);
}

.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-cta {
  display: none;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}

.menu-toggle:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.menu-icon {
  position: relative;
  width: 1.125rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: background 0.2s;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile panel (sibling of .site-header — avoids fixed + backdrop-filter clipping on iOS/Safari) */
.mobile-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  border-top: 1px solid var(--border);
}

.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-panel-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  cursor: pointer;
}

.mobile-nav {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 2.5rem;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.mobile-nav-list a {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-decoration: none;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible {
  color: var(--accent);
  padding-left: 0.35rem;
}

.mobile-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.9375rem;
  word-break: break-all;
}

@media (min-width: 880px) {
  .nav-desktop {
    display: block;
  }

  .btn-nav-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-panel {
    display: none !important;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #1c1410;
}

.btn-primary:hover {
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--bg-card);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(234, 156, 59, 0.06), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, black 20%, transparent 85%);
}

.hero-layout {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.hero-main {
  min-width: 0;
}

@media (min-width: 960px) {
  .hero-main .hero-lead {
    max-width: 34rem;
  }

  .hero-ctas {
    margin-bottom: 0;
  }
}

.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  padding: 0.5rem 0 2.5rem;
}

@media (min-width: 960px) {
  .hero-visual {
    min-height: 320px;
    padding: 1rem 0 3rem;
  }
}

.hero-mock {
  margin-left: auto;
  margin-right: 0;
  max-width: 340px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.hero-mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.hero-mock-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-mock-chrome span:first-child {
  background: #ef4444;
  opacity: 0.85;
}

.hero-mock-chrome span:nth-child(2) {
  background: #eab308;
  opacity: 0.85;
}

.hero-mock-chrome span:nth-child(3) {
  background: #22c55e;
  opacity: 0.85;
}

.hero-mock-content {
  padding: 0.85rem 0.85rem 1rem;
}

.hero-mock-nav {
  height: 8px;
  width: 55%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  margin-bottom: 0.75rem;
}

.hero-mock-hero {
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(234, 156, 59, 0.2) 0%, var(--bg-card) 55%, var(--border) 100%);
  margin-bottom: 0.75rem;
}

.hero-mock-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.hero-mock-p {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.hero-float {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 200px;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-size: 0.75rem;
  line-height: 1.35;
}

.hero-float-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-float-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hero-float-text strong {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-float-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-float--a {
  left: 0;
  top: 8%;
}

.hero-float--b {
  right: 0;
  top: 38%;
}

.hero-float--c {
  left: 4%;
  bottom: 0;
}

@media (max-width: 959px) {
  .hero-mock {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-float {
    max-width: 180px;
  }

  .hero-float--a {
    left: 0;
    top: 0;
  }

  .hero-float--b {
    right: 0;
    top: auto;
    bottom: 22%;
  }

  .hero-float--c {
    left: auto;
    right: 12%;
    bottom: 0;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 7vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
  font-optical-sizing: auto;
}

@media (min-width: 960px) {
  .hero-title {
    max-width: 16ch;
  }
}

.text-accent {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

@media (min-width: 540px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 960px) {
  .hero-side .hero-stats {
    max-width: 100%;
  }
}

.hero-stats li {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.hero-stats li:hover {
  border-color: var(--border-strong);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.hero-stats span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* —— Sections —— */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-tint {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 1.25rem;
  font-optical-sizing: auto;
}

.section-intro {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-intro .section-heading {
  margin-bottom: 0.75rem;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
}

.prose {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.prose:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.pill-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .pill-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pill-card {
  margin: 0;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.pill-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.pill-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
}

.pill-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Services */
.services {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

.service-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(234, 156, 59, 0.05) 100%);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.service-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}

.service-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(234, 156, 59, 0.22);
}

.service-icon svg {
  display: block;
}

.service-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.28;
  font-optical-sizing: auto;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.62;
  flex-grow: 1;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .service-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 36rem;
    margin-inline: auto;
  }
}

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .process-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-strong);
}

@media (min-width: 768px) {
  .process-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: none;
    border-left: 1px solid var(--border);
    padding-left: 1.75rem;
    margin-left: 0;
  }

  .process-item:first-child {
    border-left: none;
    padding-left: 0;
  }
}

.process-index {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--accent);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.process-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  font-optical-sizing: auto;
}

.process-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 520px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(168, 162, 158, 0.65);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.logo-footer {
  font-size: 1rem;
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Reveal */
.fade-up,
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.fade-in {
  transform: none;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}
