/* ==========================================================================
   Genartml.com — Main Stylesheet
   ==========================================================================
   Sections:
     1.  Design Tokens (CSS Variables)
     2.  Reset & Base
     3.  Layout Helpers
     4.  Navigation
     5.  Hero
     6.  Sections (shared)
     7.  Buttons
     8.  Services
     9.  Products
     10. Marquee
     11. Process
     12. About + Founder Card
     13. Contact / CTA + Form
     14. Footer
     15. Reveal Animations
     16. Ambient Effects
     17. Motion Preferences
   ========================================================================== */


/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  /* Colors */
  --paper: #FAFAF7;
  --paper-2: #F2F0EA;
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --muted: #6B6B66;
  --muted-2: #9A9A94;
  --line: #E4E1D8;
  --line-strong: #C9C6BC;
  --inverse: #FAFAF7;
  --dark: #0A0A0A;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-w: 1240px;
  --pad-x: 32px;
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }
}
@media (max-width: 380px) {
  :root { --pad-x: 16px; }
}


/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

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

img, svg { max-width: 100%; height: auto; display: block; }

button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}


/* ==========================================================================
   3. Layout Helpers
   ========================================================================== */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}


/* ==========================================================================
   4. Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease,
              backdrop-filter 0.4s ease,
              border-color 0.4s ease;
}

.nav.scrolled {
  background: rgba(250, 250, 247, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 28px;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.7; }

.brand-logo {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-size: 14px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
}


/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 200px 0 140px;
}

@media (max-width: 780px) {
  .hero { padding: 140px 0 80px; }
}
@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--muted);
}

.hero-title {
  max-width: 15ch;
  font-size: clamp(38px, 7.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--ink);
}
.hero-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 0 0.02em;
}

@media (max-width: 380px) {
  .hero-title { font-size: 34px; line-height: 1; }
}

.hero-sub {
  margin-top: 40px;
  max-width: 44ch;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 480px) {
  .hero-sub { margin-top: 28px; }
  .hero-eyebrow { margin-bottom: 28px; }
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 40px;
  }
  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }
}

.hero-meta {
  position: absolute;
  top: 200px;
  right: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: right;
}
.hero-meta span { color: var(--muted-2); }

@media (max-width: 900px) {
  .hero-meta { display: none; }
}


/* ==========================================================================
   6. Sections (shared)
   ========================================================================== */
.section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}

@media (max-width: 780px) {
  .section { padding: 88px 0; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }
}
@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  max-width: 60px;
  background: var(--line);
}
.eyebrow-num {
  font-family: var(--font-mono);
  color: var(--ink);
}

.section-title {
  max-width: 18ch;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.section-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}


/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 14px 22px;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease,
              background 0.2s ease,
              border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}
.btn-primary .arrow {
  transition: transform 0.25s ease;
}
.btn-primary:hover .arrow {
  transform: translateX(3px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }


/* ==========================================================================
   8. Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.service {
  position: relative;
  padding: 48px 40px;
  background: var(--paper);
  transition: background 0.3s ease;
}
.service:hover { background: var(--paper-2); }

@media (max-width: 640px) {
  .service { padding: 36px 24px; }
  .service h3 { font-size: 24px; margin-top: 32px; }
}
@media (max-width: 380px) {
  .service { padding: 32px 20px; }
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.service h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.service p {
  max-width: 42ch;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 10px;
  margin: 0 0 40px 0;
  padding: 0;
  list-style: none;
}
.service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1px;
  background: var(--ink);
}

.service-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.service-foot strong {
  font-weight: 500;
  color: var(--ink);
}


/* ==========================================================================
   9. Products
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 40px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product:hover { transform: translateY(-4px); }

@media (max-width: 640px) {
  .product { padding: 32px 24px; min-height: 280px; }
}
@media (max-width: 380px) {
  .product { padding: 28px 20px; min-height: 260px; }
}

.product-visual {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.product-tag {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.product-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.product-badge {
  padding: 5px 10px;
  background: rgba(10, 10, 10, 0.08);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
}

.product-body {
  position: relative;
  margin-top: auto;
}

.product-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 78%;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 560px) {
  .product-logo { height: 38px; }
}

.product p {
  max-width: 34ch;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  color: var(--ink);
  transition: gap 0.2s ease;
}
.product-link:hover { gap: 12px; }

/* Brand-tinted product variants */
.product-evoluter {
  background: linear-gradient(180deg, #F3EEF7 0%, #EDE5F2 100%);
  border-color: #E2D8EA;
}
.product-extuter {
  background: linear-gradient(180deg, #EEF0FA 0%, #E6E9F6 100%);
  border-color: #D8DCEE;
}

/* Coming-soon state */
.product-comingsoon { cursor: default; }
.product-comingsoon:hover { transform: none; }

.product-link-disabled {
  border-bottom-color: transparent;
  color: var(--muted);
  font-style: italic;
  cursor: default;
}
.product-link-disabled:hover { gap: 8px; }


/* ==========================================================================
   10. Marquee
   ========================================================================== */
.marquee {
  position: relative;
  width: 100%;
  max-width: 100vw;
  padding: 60px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.marquee-label {
  margin-bottom: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0.7;
}
.marquee-item .dot {
  margin-left: 64px;
  color: var(--muted-2);
}

@media (max-width: 640px) {
  .marquee { padding: 44px 0; }
  .marquee-label { margin-bottom: 24px; }
  .marquee-track { gap: 40px; }
  .marquee-item { font-size: 17px; }
  .marquee-item .dot { margin-left: 40px; }
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ==========================================================================
   11. Process
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.step-num {
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@media (max-width: 640px) {
  .step-num { margin-bottom: 20px; }
}

.step h4 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}


/* ==========================================================================
   12. About + Founder Card
   ========================================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
}

.about p {
  max-width: 52ch;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.about p strong {
  font-weight: 500;
  color: var(--ink);
}

.founder-card {
  position: sticky;
  top: 100px;
  padding: 40px;
  background: var(--dark);
  color: var(--inverse);
  border-radius: 20px;
}

@media (max-width: 900px) {
  .founder-card { position: static; }
}
@media (max-width: 640px) {
  .founder-card { padding: 32px 24px; }
}

.founder-card .eyebrow { color: var(--muted-2); }
.founder-card .eyebrow::after { background: rgba(255, 255, 255, 0.15); }

.founder-name {
  margin-top: 24px;
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.founder-role {
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.founder-bio {
  margin-bottom: 32px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(250, 250, 247, 0.7);
}

.founder-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--inverse);
}

.stat-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}


/* ==========================================================================
   13. Contact / CTA + Form
   ========================================================================== */
.cta {
  position: relative;
  padding: 140px 0;
  background: var(--dark);
  color: var(--inverse);
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(250, 250, 247, 0.06), transparent 60%);
  pointer-events: none;
}

@media (max-width: 780px) {
  .cta { padding: 88px 0; }
}
@media (max-width: 480px) {
  .cta { padding: 64px 0; }
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .contact-inner { gap: 32px; }
}

.cta-eyebrow {
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.contact-left h2 {
  margin-bottom: 32px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--inverse);
}
.contact-left h2 .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.contact-left p {
  max-width: 40ch;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(250, 250, 247, 0.6);
}

.contact-meta {
  display: grid;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-meta-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.contact-meta-value {
  font-size: 15px;
  color: var(--inverse);
  transition: opacity 0.2s ease;
}
a.contact-meta-value:hover { opacity: 0.7; }

/* Form */
.form-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

@media (max-width: 600px) {
  .form-card { padding: 28px 24px; }
}
@media (max-width: 380px) {
  .form-card { padding: 24px 20px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-field.no-mb { margin-bottom: 0; }

.form-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  color: var(--inverse);
  outline: none;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--inverse);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(250, 250, 247, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-select {
  padding-right: 24px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%23FAFAF7' stroke-width='1.5' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.form-select option {
  background: var(--dark);
  color: var(--inverse);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 16px 24px;
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.form-submit:hover {
  background: white;
  transform: translateY(-1px);
}
.form-submit .arrow { transition: transform 0.25s ease; }
.form-submit:hover .arrow { transform: translateX(3px); }
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.form-success {
  display: none;
  padding: 20px 0;
  text-align: center;
}
.form-success.show { display: block; }

.form-success .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
}

.form-success h4 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--inverse);
}

.form-success p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-2);
}


/* ==========================================================================
   14. Footer
   ========================================================================== */
.footer {
  padding: 40px 0;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

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

.footer a {
  color: var(--muted-2);
  transition: color 0.2s ease;
}
.footer a:hover { color: var(--inverse); }

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 18px;
  width: auto;
  opacity: 0.85;
}

.footer-copyright {
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link-disabled {
  color: var(--muted-2);
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px 20px;
  }
  .footer-brand-block { gap: 16px; }
}


/* ==========================================================================
   15. Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }


/* ==========================================================================
   16. Ambient Effects
   ========================================================================== */
.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 500px;
  background: radial-gradient(ellipse, rgba(10, 10, 10, 0.04), transparent 60%);
  pointer-events: none;
  z-index: -1;
}


/* ==========================================================================
   18. Blog — Listing Page
   ========================================================================== */

/* Blog Hero — uses shared .hero styles but with blog-specific padding */
.blog-hero {
  position: relative;
  padding: 200px 0 100px;
}

@media (max-width: 780px) {
  .blog-hero { padding: 140px 0 64px; }
}
@media (max-width: 480px) {
  .blog-hero { padding: 120px 0 48px; }
}

/* Active nav link */
.nav-link-active {
  color: var(--ink) !important;
  font-weight: 500;
}

/* Featured Post */
.blog-featured-section {
  padding-top: 0;
  border-top: none;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding: 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease;
}
.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(10, 10, 10, 0.06);
}

@media (max-width: 900px) {
  .blog-featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .blog-featured { padding: 20px; border-radius: 16px; }
}

.blog-featured-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.blog-featured:hover .blog-featured-img img {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .blog-featured-img { border-radius: 12px; }
}

.blog-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.blog-featured-title {
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
}

.blog-featured-excerpt {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* Blog Card Meta (shared between listing and post) */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.blog-card-tag {
  padding: 4px 10px;
  background: rgba(10, 10, 10, 0.06);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
}

.blog-card-dot {
  color: var(--muted-2);
}

.blog-card-read,
.blog-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Blog Grid Header */
.blog-grid-header {
  margin-bottom: 56px;
}

@media (max-width: 780px) {
  .blog-grid-header { margin-bottom: 40px; }
}

/* Category Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.blog-filter {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.blog-filter:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.blog-filter.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

@media (max-width: 640px) {
  .blog-filters { gap: 8px; }
  .blog-filter { padding: 7px 14px; font-size: 11px; }
}

/* Blog Grid Section */
.blog-grid-section {
  padding-top: 0;
  border-top: none;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Individual Blog Card */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(10, 10, 10, 0.06);
  border-color: var(--line-strong);
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
  gap: 14px;
}

@media (max-width: 640px) {
  .blog-card-body { padding: 24px 20px; }
}

.blog-card-body h3 {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.blog-card-body p {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.blog-card-arrow {
  font-size: 16px;
  color: var(--ink);
  transition: transform 0.25s ease;
}
.blog-card:hover .blog-card-arrow {
  transform: translateX(4px);
}

/* Hide filtered cards */
.blog-card.hidden {
  display: none;
}

/* Empty State */
.blog-empty {
  text-align: center;
  padding: 80px 0;
}
.blog-empty p {
  font-size: 16px;
  color: var(--muted);
}


/* ==========================================================================
   19. Blog — Newsletter CTA
   ========================================================================== */
.blog-newsletter {
  overflow: hidden;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .newsletter-inner { gap: 32px; }
}

.newsletter-content h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--inverse);
}
.newsletter-content h2 .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.newsletter-content p {
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(250, 250, 247, 0.6);
}

.newsletter-form-wrap {
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
  .newsletter-form-wrap { padding: 28px 24px; }
}

.newsletter-input-group {
  display: flex;
  gap: 12px;
}

@media (max-width: 560px) {
  .newsletter-input-group { flex-direction: column; }
}

.newsletter-input {
  flex: 1;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--inverse);
  outline: none;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.newsletter-input:focus {
  border-bottom-color: var(--inverse);
}
.newsletter-input::placeholder {
  color: rgba(250, 250, 247, 0.3);
}

.newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.newsletter-btn:hover {
  background: white;
  transform: translateY(-1px);
}
.newsletter-btn .arrow { transition: transform 0.25s ease; }
.newsletter-btn:hover .arrow { transform: translateX(3px); }

.newsletter-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.newsletter-success {
  display: none;
  padding: 20px 0;
  text-align: center;
}
.newsletter-success.show {
  display: block;
}
.newsletter-success .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
}
.newsletter-success h4 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--inverse);
}
.newsletter-success p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-2);
}


/* ==========================================================================
   20. Blog — Post Page
   ========================================================================== */

/* Post Header */
.post-header {
  position: relative;
  padding: 160px 0 60px;
}

@media (max-width: 780px) {
  .post-header { padding: 130px 0 48px; }
}
@media (max-width: 480px) {
  .post-header { padding: 110px 0 36px; }
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s ease, gap 0.2s ease;
}
.post-back:hover {
  color: var(--ink);
  gap: 12px;
}

@media (max-width: 480px) {
  .post-back { margin-bottom: 32px; }
}

.post-header-meta {
  margin-bottom: 24px;
}

.post-title {
  max-width: 20ch;
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--ink);
}
.post-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

@media (max-width: 480px) {
  .post-title { font-size: 28px; line-height: 1.1; }
}

/* Author Row */
.post-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  .post-author-row { margin-top: 32px; padding-top: 24px; }
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.post-author-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.post-author-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Post Cover */
.post-cover {
  margin-bottom: 72px;
}
.post-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
}

@media (max-width: 780px) {
  .post-cover { margin-bottom: 48px; }
  .post-cover img { max-height: 360px; border-radius: 16px; }
}
@media (max-width: 480px) {
  .post-cover { margin-bottom: 36px; }
  .post-cover img { max-height: 240px; border-radius: 12px; }
}

/* Post Body Layout */
.post-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

@media (max-width: 1024px) {
  .post-wrap { grid-template-columns: 1fr 240px; gap: 48px; }
}
@media (max-width: 780px) {
  .post-wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* Post Content — Article Typography */
.post-content {
  max-width: 680px;
  padding-bottom: 80px;
}

.post-lead {
  margin-bottom: 48px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 400;
}

@media (max-width: 480px) {
  .post-lead { font-size: 17px; margin-bottom: 36px; }
}

.post-content h2 {
  margin-top: 56px;
  margin-bottom: 24px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
}

.post-content h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
}

.post-content p {
  margin-bottom: 24px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}
.post-content p strong {
  font-weight: 500;
  color: var(--ink);
}
.post-content p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s ease;
}
.post-content p a:hover {
  text-decoration-color: var(--ink);
}

.post-content ul,
.post-content ol {
  margin-bottom: 28px;
  padding-left: 0;
  list-style: none;
}

.post-content ul li,
.post-content ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.post-content ul li strong,
.post-content ol li strong {
  font-weight: 500;
  color: var(--ink);
}

.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 12px;
  height: 1px;
  background: var(--ink);
}

.post-content ol {
  counter-reset: post-list;
}
.post-content ol li {
  counter-increment: post-list;
}
.post-content ol li::before {
  content: counter(post-list) '.';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

/* Blockquote */
.post-content blockquote {
  margin: 48px 0;
  padding: 32px 0 32px 32px;
  border-left: 3px solid var(--ink);
}

.post-content blockquote p {
  font-size: 20px;
  font-style: italic;
  font-family: var(--font-serif);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 12px;
}

.post-content blockquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (max-width: 480px) {
  .post-content blockquote {
    margin: 32px 0;
    padding: 24px 0 24px 20px;
  }
  .post-content blockquote p { font-size: 18px; }
}

/* Post Stats Grid */
.post-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .post-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding: 32px 0;
    margin: 36px 0;
  }
}

.post-stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.post-stat-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.4;
}

/* Post CTA Box */
.post-cta-box {
  margin-top: 56px;
  padding: 40px;
  background: var(--dark);
  border-radius: 20px;
  color: var(--inverse);
}

.post-cta-label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.post-cta-box p {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 250, 247, 0.7) !important;
}

.post-cta-box .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.post-cta-box .btn-primary:hover {
  background: white;
}

@media (max-width: 640px) {
  .post-cta-box { padding: 32px 24px; border-radius: 16px; }
}

/* Post Sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 780px) {
  .post-sidebar { position: static; }
}

.post-sidebar-card {
  padding: 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.post-sidebar-label {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Share Links */
.post-share-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-share-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  text-align: left;
}
.post-share-link:hover {
  background: var(--paper);
}
.post-share-link svg {
  flex-shrink: 0;
  color: var(--muted);
}

/* Table of Contents */
.post-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-toc-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.post-toc-link:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Related Posts */
.blog-related {
  border-top: 1px solid var(--line);
}

.blog-grid-related {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .blog-grid-related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-grid-related { grid-template-columns: 1fr; }
}


/* ==========================================================================
   21. Accessibility — Focus States & Keyboard Navigation
   ========================================================================== */

/* Skip-to-content link (visually hidden until focused) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* Global focus-visible ring (keyboard only, not mouse clicks) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dark backgrounds need inverted focus rings */
.cta a:focus-visible,
.cta button:focus-visible,
.cta input:focus-visible,
.cta select:focus-visible,
.cta textarea:focus-visible,
.footer a:focus-visible,
.founder-card a:focus-visible,
.post-cta-box a:focus-visible {
  outline-color: var(--paper);
}

/* Nav CTA pill gets a rounder focus ring */
.nav-cta:focus-visible {
  outline-offset: 4px;
  border-radius: 100px;
}

/* Buttons with existing border-radius keep it */
.btn:focus-visible,
.blog-filter:focus-visible,
.form-submit:focus-visible,
.newsletter-btn:focus-visible,
.admin-btn:focus-visible {
  border-radius: 100px;
  outline-offset: 3px;
}

/* Product cards and blog cards */
.product:focus-visible,
.blog-card:focus-visible,
.blog-featured:focus-visible {
  outline-offset: 4px;
  border-radius: 20px;
}

/* Share links */
.post-share-link:focus-visible {
  border-radius: 10px;
}

/* Remove default outline since we handle it with focus-visible */
:focus:not(:focus-visible) {
  outline: none;
}


/* ==========================================================================
   17. Motion Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
