:root {
  --bg: #10100f;
  --panel: #171716;
  --panel-strong: #20201e;
  --panel-soft: #24231f;
  --text: #f4f1ea;
  --muted: #b8b0a1;
  --subtle: #837b70;
  --line: #34322d;
  --mint: #7dd3a8;
  --amber: #f4b860;
  --coral: #ff7a6b;
  --blue: #82aaff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 16, 15, 0.92);
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand-mark small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.site-nav a {
  color: var(--muted);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--panel-strong);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-cta {
  color: var(--bg);
  background: var(--amber);
  font-size: 14px;
}

.button-primary {
  color: var(--bg);
  background: var(--mint);
}

.button-secondary {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.button:hover,
.header-cta:hover,
.filter-tabs button:hover {
  transform: translateY(-1px);
}

.button i,
.header-cta i,
.card-actions i,
.writing-card a i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: background 160ms ease;
}

.menu-toggle:hover {
  background: var(--panel-strong);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero-section {
  padding: 88px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
}

.status-pill,
.eyebrow {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(244, 184, 96, 0.28);
  border-radius: 8px;
  background: rgba(244, 184, 96, 0.08);
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: 72px;
  line-height: 0.94;
  font-weight: 850;
}

.hero-headline {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
}

.hero-summary,
.page-hero p,
.section-header p,
.split-section p,
.inowix-grid p,
.site-footer p,
.company-panel p {
  color: var(--muted);
}

.hero-summary {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 18px;
}

.hero-actions,
.button-row,
.section-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}

.portrait-wrap {
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.focus-panel {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: min(270px, 72%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 32, 30, 0.96);
  box-shadow: var(--shadow);
}

.focus-panel span,
.project-meta,
.contact-panel span,
.company-panel span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.focus-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.35;
}

.proof-strip {
  padding: 24px 0 52px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.proof-item {
  min-height: 116px;
  padding: 22px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  color: var(--text);
  font-size: 36px;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.section-block,
.page-section,
.page-hero {
  padding: 78px 0;
}

.page-section {
  min-height: 68vh;
}

.muted-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2,
.inowix-grid h2,
.split-section h2,
.contact-cta h2 {
  margin: 0;
  color: var(--text);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 820;
}

.section-header p {
  margin: 14px 0 0;
  font-size: 17px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.capability-card,
.writing-card,
.stack-card,
.timeline-item,
.contact-panel,
.contact-form-modern,
.company-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-card {
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--panel-strong);
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.03);
}

.project-media span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: var(--bg);
  background: var(--mint);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.project-card h3,
.capability-card h3,
.writing-card h3,
.stack-card h3,
.timeline-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.24;
}

.project-card p,
.capability-card p,
.writing-card p,
.timeline-item p {
  color: var(--muted);
}

.project-card p {
  margin: 12px 0 0;
}

.project-impact {
  padding-left: 12px;
  border-left: 3px solid var(--amber);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.card-actions a,
.writing-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  font-weight: 800;
}

.inowix-band {
  padding: 70px 0;
  color: var(--text);
  background: #18140f;
  border-top: 1px solid rgba(244, 184, 96, 0.18);
  border-bottom: 1px solid rgba(244, 184, 96, 0.18);
}

.inowix-grid,
.split-section,
.page-hero-grid,
.about-hero-grid,
.contact-grid,
.cta-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.service-list,
.service-matrix {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-list li,
.service-matrix div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(244, 184, 96, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.service-list i,
.service-matrix i {
  width: 20px;
  height: 20px;
  color: var(--mint);
  flex: 0 0 auto;
}

.capability-grid,
.stack-grid,
.writing-grid,
.service-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.capability-card,
.writing-card,
.stack-card {
  min-height: 220px;
  padding: 20px;
}

.icon-chip {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--bg);
  background: var(--blue);
  border-radius: 8px;
}

.icon-chip i {
  width: 24px;
  height: 24px;
}

.stack-preview {
  display: grid;
  gap: 12px;
}

.stack-preview div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.stack-preview strong {
  color: var(--amber);
}

.stack-preview span {
  color: var(--muted);
}

.writing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.writing-card span {
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.writing-card h3 {
  margin-top: 16px;
}

.contact-cta {
  padding: 74px 0;
  background: var(--panel-soft);
}

.cta-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 850px;
  font-size: 54px;
  line-height: 1.04;
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: 18px;
}

.company-panel {
  padding: 26px;
  min-height: 260px;
}

.company-panel strong {
  display: block;
  color: var(--amber);
  font-size: 64px;
  line-height: 1;
  margin: 14px 0;
}

.about-photo {
    width: 100%;
  }
}

/* ===== Conversion Sections ===== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
}

.process-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.process-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.process-time {
  margin-top: 14px;
  color: var(--amber);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.engagement-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.engagement-card .icon-chip {
  margin-bottom: 16px;
}

.engagement-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.24;
}

.engagement-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.ideal-for {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

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

.faq-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.faq-item h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cta-subtext {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

/* ===== Contact Conversion Styles ===== */

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint) !important;
  font-weight: 700;
}

.availability-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.quick-engagement {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.quick-engagement > span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.engagement-mini {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.engagement-mini strong {
  color: var(--text);
  font-size: 13px;
}

.engagement-mini span {
  color: var(--subtle);
  font-size: 11px;
}

.contact-form-modern select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--bg);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8b0a1' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.contact-form-modern select option {
  background: var(--bg);
  color: var(--text);
}

@media (max-width: 980px) {
  .site-container {
    width: min(100% - 28px, 780px);
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
    text-align: center;
  }

  .header-cta {
    display: none;
  }

  .hero-section {
    padding-top: 54px;
    padding-bottom: 32px;
  }

  .hero-grid,
  .inowix-grid,
  .split-section,
  .page-hero-grid,
  .about-hero-grid,
  .contact-grid,
  .footer-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-headline {
    font-size: 24px;
  }

  .hero-visual {
    min-height: auto;
  }

  .portrait-wrap {
    width: min(100%, 340px);
  }

  .proof-grid,
  .project-grid,
  .capability-grid,
  .writing-grid,
  .stack-grid,
  .service-matrix,
  .process-grid,
  .engagement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .page-hero h1,
  .section-header h2,
  .inowix-grid h2,
  .split-section h2,
  .contact-cta h2 {
    font-size: 36px;
  }

  .about-photo {
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .cta-grid {
    text-align: center;
  }

  .cta-grid .button {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-container {
    width: min(100% - 20px, 480px);
  }

  .brand-mark {
    min-width: auto;
  }

  .brand-mark small {
    display: none;
  }

  .header-inner {
    min-height: 64px;
  }

  .hero-section,
  .section-block,
  .page-section,
  .page-hero {
    padding: 44px 0;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-headline {
    font-size: 20px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .button-row .button,
  .contact-cta .button,
  .contact-form-modern .button {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 12px;
  }

  .portrait-wrap {
    width: 100%;
  }

  .focus-panel {
    position: static;
    width: 100%;
  }

  .proof-grid,
  .project-grid,
  .capability-grid,
  .writing-grid,
  .stack-grid,
  .service-matrix,
  .process-grid,
  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .proof-item strong {
    font-size: 28px;
  }

  .section-header h2,
  .inowix-grid h2,
  .split-section h2,
  .contact-cta h2,
  .page-hero h1 {
    font-size: 28px;
  }

  .section-header p,
  .hero-summary,
  .page-hero p {
    font-size: 15px;
  }

  .inowix-band {
    padding: 44px 0;
  }

  .contact-cta {
    padding: 44px 0;
  }

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

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-meta {
    display: grid;
  }

  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tabs button {
    flex: 0 0 auto;
  }

  .project-card h3,
  .capability-card h3,
  .writing-card h3,
  .stack-card h3 {
    font-size: 18px;
  }

  .company-panel strong {
    font-size: 48px;
  }

  .about-photo {
    width: 100%;
  }
}
