/* wine-experience — shared styles.
   Baseline extracted verbatim from index.html <style>. Edit here, then run:
   node wine-experience/_build/build.mjs */

    /* ── Reset & Variables ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    
    :root {
      --bg-linen:       #F7F4EF;      /* Warm premium linen background */
      --bg-beige:       #EAE5DB;      /* Sand panel beige */
      --text-plum:      #2C0D12;      /* Deep rich wine typography */
      --text-muted:     #61504E;      /* Structured muted warm-charcoal */
      --accent-terracotta: #A63F3F;   /* Earthy terracotta ruby */
      --accent-terracotta-dark: #8C2F2F;
      --line-color:     rgba(44, 13, 18, 0.08); /* Symmetrical paper rules */
      --serif:          'Cormorant Garamond', Georgia, serif;
      --sans:           'Plus Jakarta Sans', system-ui, sans-serif;
      --mono:           'DM Mono', 'Courier New', monospace;
      --max-width:      1200px;
      --padding:        clamp(1.5rem, 7vw, 4rem);
    }

    html {
      font-size: 110%;
      scroll-behavior: smooth;
      background-color: var(--bg-linen);
      color: var(--text-plum);
      -webkit-font-smoothing: antialiased;
    }

    body {
      font-family: var(--sans);
      font-size: 0.95rem;
      line-height: 1.7;
      background: var(--bg-linen);
      overflow-x: hidden;
      position: relative;
    }

    /* Subtle background grid pattern reminiscent of high-end letterpress paper */
    body::before {
      content: "";
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background-image: 
        linear-gradient(to right, var(--line-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-color) 1px, transparent 1px);
      background-size: 120px 120px;
      opacity: 0.4;
      pointer-events: none;
      z-index: 1;
    }

    /* ── Header Navigation ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: rgba(247, 244, 239, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line-color);
    }

    .nav-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 var(--padding);
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-back {
      font-family: var(--mono);
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      transition: color 0.3s;
    }

    .nav-back:hover {
      color: var(--text-plum);
    }

    .nav-back svg {
      transition: transform 0.3s ease;
    }

    .nav-back:hover svg {
      transform: translateX(-4px);
    }

    .nav-logo {
      font-family: var(--serif);
      font-size: 1.6rem;
      font-weight: 500;
      color: var(--text-plum);
      text-decoration: none;
      letter-spacing: -0.02em;
    }

    .nav-logo span {
      color: var(--accent-terracotta);
    }

    /* ── Language Dropdown (Aliansa Style) ── */
    .lang-dropdown {
      position: relative;
      display: inline-block;
    }

    .lang-dropdown-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      font-family: var(--mono);
      font-size: 0.55rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-muted);
      background: rgba(44, 13, 18, 0.04);
      border: 1px solid rgba(44, 13, 18, 0.12);
      padding: 0.2rem 0.4rem;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      user-select: none;
    }

    .lang-dropdown-btn:hover,
    .lang-dropdown-btn.active {
      color: var(--text-plum);
      background: rgba(44, 13, 18, 0.08);
      border-color: rgba(44, 13, 18, 0.2);
    }

    .lang-dropdown-btn svg {
      transition: transform 0.2s ease;
    }

    .lang-dropdown-btn.open svg {
      transform: rotate(180deg);
    }

    .lang-dropdown-menu {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      background: var(--bg-linen);
      border: 1px solid rgba(44, 13, 18, 0.12);
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(44, 13, 18, 0.12);
      padding: 0.2rem;
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 70px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-4px);
      transition: all 0.2s ease;
      z-index: 100;
    }

    .lang-dropdown-menu.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .lang-dropdown-menu a {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      font-family: var(--mono);
      font-size: 0.55rem;
      color: var(--text-muted);
      text-decoration: none;
      padding: 0.25rem 0.4rem;
      border-radius: 4px;
      transition: all 0.15s ease;
    }

    .lang-dropdown-menu a:hover {
      color: var(--text-plum);
      background: rgba(44, 13, 18, 0.06);
    }

    .lang-dropdown-menu a.active {
      color: var(--bg-linen);
      background: var(--text-plum);
      font-weight: 600;
    }

    /* ── Editorial Layout Sections ── */
    .section-editorial {
      padding: clamp(5rem, 12vh, 9rem) 0;
      border-bottom: 1px solid var(--line-color);
      position: relative;
      z-index: 2;
    }

    .container-editorial {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 var(--padding);
      width: 100%;
    }

    /* Fine asymmetric magazine grid */
    .grid-editorial {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: clamp(2rem, 8vw, 5.5rem);
      align-items: center;
    }

    .grid-editorial.reverse {
      grid-template-columns: 0.9fr 1.1fr;
    }

    .editorial-copy {
      display: flex;
      flex-direction: column;
    }

    .editorial-tag {
      font-family: var(--mono);
      font-size: 0.55rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent-terracotta);
      margin-bottom: 1.2rem;
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }

    .editorial-tag::before {
      content: "";
      display: inline-block;
      width: 24px;
      height: 1px;
      background: var(--accent-terracotta);
    }

    .editorial-title {
      font-family: var(--serif);
      font-weight: 400;
      font-size: clamp(2.8rem, 5.5vw, 4.4rem);
      line-height: 1.05;
      letter-spacing: -0.03em;
      color: var(--text-plum);
      margin-bottom: 1.8rem;
    }

    .editorial-title em {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 300;
      color: var(--accent-terracotta);
    }

    .editorial-subtitle {
      font-family: var(--serif);
      font-size: clamp(1.4rem, 2.2vw, 2rem);
      font-weight: 400;
      font-style: italic;
      line-height: 1.35;
      color: var(--text-plum);
      margin-bottom: 2rem;
      border-left: 3px solid var(--accent-terracotta);
      padding-left: 1.2rem;
    }

    .editorial-desc {
      font-size: 0.9rem;
      line-height: 1.85;
      color: var(--text-muted);
      margin-bottom: 1.8rem;
      text-align: justify;
      text-justify: inter-word;
    }

    .editorial-desc strong {
      color: var(--text-plum);
      font-weight: 600;
    }

    .lead-paragraph {
      font-size: 1.1rem;
      line-height: 1.8;
      color: var(--text-plum);
      margin-bottom: 2rem;
    }

    .lead-paragraph::first-letter {
      font-family: var(--serif);
      font-size: 4.2rem;
      float: left;
      margin-right: 0.8rem;
      margin-top: 0.2rem;
      line-height: 0.75;
      color: var(--accent-terracotta);
      font-weight: 400;
    }

    /* ── Editorial Images and Graphics Framing ── */
    .editorial-showcase {
      width: 100%;
      position: relative;
    }

    .editorial-frame {
      width: 100%;
      background: var(--bg-beige);
      border: 1px solid var(--line-color);
      padding: 0.8rem;
      position: relative;
      box-shadow: 0 15px 35px rgba(44, 13, 18, 0.03);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .editorial-frame img {
      width: 100%;
      height: auto;
      display: block;
      filter: grayscale(15%) contrast(102%);
      transition: filter 0.5s ease;
    }

    .editorial-frame:hover img {
      filter: grayscale(0%) contrast(102%);
    }

    /* Overlapping grid element mimicking magazine cutouts */
    .editorial-frame::after {
      content: "";
      position: absolute;
      top: -12px; left: -12px; right: 12px; bottom: 12px;
      border: 1px solid var(--accent-terracotta);
      opacity: 0.4;
      pointer-events: none;
      z-index: -1;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .editorial-caption {
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-top: 1rem;
      display: flex;
      justify-content: space-between;
      border-top: 1px solid var(--line-color);
      padding-top: 0.6rem;
    }

    /* Vector SVG Art Frame (for architectural sketches) */
    .art-vector-frame {
      width: 100%;
      aspect-ratio: 1.15 / 1;
      background: var(--bg-beige);
      border: 1px solid var(--line-color);
      border-radius: 2px;
      padding: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .art-vector-frame svg {
      width: 100%;
      height: 100%;
    }

    /* ── Social-story widget ── */
    .story-embed {
      width: 100%;
      max-width: 340px;
      aspect-ratio: 9 / 16;
      background: #000000;
      border: 1px solid var(--line-color);
      border-radius: 16px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 25px 55px rgba(44, 13, 18, 0.08);
      margin: 0 auto;
      user-select: none;
      cursor: pointer;
    }

    .story-embed::before {
      content: "";
      position: absolute;
      top: -8px; left: -8px; right: 8px; bottom: 8px;
      border: 1px solid var(--accent-terracotta);
      opacity: 0.3;
      pointer-events: none;
      z-index: -1;
      border-radius: 18px;
    }

    /* Top Progress Ticks */
    .story-progress-container {
      position: absolute;
      top: 14px;
      left: 12px;
      right: 12px;
      display: flex;
      gap: 4px;
      z-index: 20;
    }

    .story-progress-bar {
      height: 2.5px;
      flex: 1;
      background: rgba(255, 255, 255, 0.35);
      border-radius: 1px;
      overflow: hidden;
    }

    .story-progress-fill {
      height: 100%;
      width: 0%;
      background: #ffffff;
    }

    /* Story User Info Bar */
    .story-header {
      position: absolute;
      top: 26px;
      left: 12px;
      right: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #ffffff;
      z-index: 20;
      text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    }

    .story-user {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .story-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
      padding: 1.8px;
    }

    .story-avatar img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      border: 1.5px solid #000000;
      display: block;
    }

    .story-username {
      font-family: var(--sans);
      font-size: 0.76rem;
      font-weight: 700;
      color: #ffffff;
      letter-spacing: -0.01em;
    }

    /* Live Story Slides container */
    .story-slides {
      width: 100%;
      height: 100%;
      position: relative;
      background: #111111;
    }

    .story-slide {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      opacity: 0;
      z-index: 1;
      transition: opacity 0.35s ease-in-out;
    }

    .story-slide.active {
      opacity: 1;
      z-index: 5;
    }

    .story-slide video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* Rich gradient mask to protect UI text readability */
    .story-slide::after {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.45) 100%);
      pointer-events: none;
    }

    /* Interactive Footer */
    .story-footer {
      position: absolute;
      bottom: 16px;
      left: 12px;
      right: 12px;
      display: flex;
      align-items: center;
      gap: 15px;
      color: #ffffff;
      z-index: 20;
    }

    .story-input {
      flex: 1;
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 20px;
      padding: 7px 18px;
      font-size: 0.72rem;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: rgba(255, 255, 255, 0.85);
      font-family: var(--sans);
      text-align: left;
    }

    /* ── Products & Services Grid ── */
    .services-grid-block {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 3rem;
      margin-top: 1.5rem;
    }

    .service-editorial-col {
      display: flex;
      flex-direction: column;
      position: relative;
      padding-right: 1rem;
      justify-content: space-between; /* Align CTA beautifully to bottom */
      min-height: 250px;
    }

    .service-editorial-col:not(:last-child) {
      border-right: 1px solid var(--line-color);
    }

    .service-num {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 300;
      font-size: 3rem;
      color: var(--accent-terracotta);
      line-height: 1;
      margin-bottom: 1rem;
    }

    .service-header {
      font-family: var(--serif);
      font-size: 1.6rem;
      font-weight: 400;
      color: var(--text-plum);
      margin-bottom: 1rem;
      letter-spacing: -0.01em;
    }

    .service-desc {
      font-size: 0.88rem;
      line-height: 1.75;
      color: var(--text-muted);
      text-align: justify;
      margin-bottom: 1.5rem;
    }

    /* Bespoke Service CTA matching homepage style link */
    .servico-link {
      font-family: var(--mono);
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-plum);
      text-decoration: none;
      border-bottom: 1px solid var(--line-color);
      padding-bottom: 4px;
      width: fit-content;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      margin-top: auto; /* Push CTA to bottom */
    }

    .servico-link:hover {
      border-bottom-color: var(--accent-terracotta);
      color: var(--accent-terracotta);
      transform: translateX(4px);
    }

    /* ── Letterpress Contact Card Frame ── */
    .contact-card-frame {
      background: var(--bg-beige);
      border: 1px solid var(--line-color);
      padding: 3rem 2.5rem;
      position: relative;
      box-shadow: 0 15px 35px rgba(44, 13, 18, 0.02);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .contact-card-frame::after {
      content: "";
      position: absolute;
      top: -8px; left: -8px; right: 8px; bottom: 8px;
      border: 1px solid var(--accent-terracotta);
      opacity: 0.3;
      pointer-events: none;
      z-index: -1;
    }

    .contact-card-header {
      font-family: var(--serif);
      font-size: 2rem;
      font-style: italic;
      color: var(--text-plum);
      margin-bottom: 2rem;
      text-align: center;
      border-bottom: 1px solid var(--line-color);
      padding-bottom: 1rem;
      font-weight: 400;
    }

    .contact-links-stack {
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      width: 100%;
    }

    .contact-link-item {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-plum);
      text-decoration: none;
      background: var(--bg-linen);
      border: 1px solid var(--line-color);
      padding: 1rem 1.5rem;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      width: 100%;
    }

    .contact-link-item svg {
      transition: transform 0.3s ease;
      color: var(--accent-terracotta);
    }

    .contact-link-item:hover {
      border-color: var(--accent-terracotta);
      background: var(--text-plum);
      color: var(--bg-linen);
    }

    .contact-link-item:hover svg {
      transform: translateX(4px) scale(1.1);
      color: var(--bg-linen);
    }

    .wine-form {
      display: flex;
      flex-direction: column;
      gap: 1.8rem;
      background: var(--bg-beige);
      border: 1px solid var(--line-color);
      padding: 2.5rem;
      width: 100%;
      position: relative;
      box-shadow: 0 15px 35px rgba(44, 13, 18, 0.02);
    }

    .wine-form::after {
      content: "";
      position: absolute;
      top: 10px; left: 10px; right: -10px; bottom: -10px;
      border: 1px solid var(--line-color);
      z-index: -1;
      pointer-events: none;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }

    .form-group label {
      font-family: var(--mono);
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .form-group input, .form-group textarea {
      background: transparent;
      border: none;
      border-bottom: 1.5px solid var(--line-color);
      color: var(--text-plum);
      font-family: var(--sans);
      font-size: 0.92rem;
      padding: 0.6rem 0;
      outline: none;
      transition: border-color 0.3s ease;
      border-radius: 0;
    }

    .form-group input:focus, .form-group textarea:focus {
      border-bottom-color: var(--accent-terracotta);
    }

    .form-submit-btn {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--bg-linen);
      background: var(--text-plum);
      border: none;
      padding: 1.1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.8rem;
    }

    .form-submit-btn:hover {
      background: var(--accent-terracotta);
      letter-spacing: 0.18em;
    }

    /* ── Editorial Footer ── */
    footer {
      border-top: 1px solid var(--line-color);
      padding: 3rem 0;
      background: var(--bg-linen);
      position: relative;
      z-index: 2;
      text-align: center;
    }

    .footer-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 var(--padding);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }

    .footer-logo {
      font-family: var(--serif);
      font-size: 1.4rem;
      color: var(--text-plum);
      text-decoration: none;
      font-style: italic;
      margin-bottom: 0.5rem;
    }

    .footer-logo span {
      color: var(--accent-terracotta);
    }

    .footer-inner p {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .footer-inner p span {
      color: var(--accent-terracotta);
    }

    /* ── Scroll Reveals ── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
      .reveal {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
      }
    }

    .reveal-delay-1 { transition-delay: 0.15s; }
    .reveal-delay-2 { transition-delay: 0.3s; }

    /* ── Responsive Grid Breakpoints ── */
    @media (max-width: 992px) {
      .services-grid-block {
        grid-template-columns: 1fr;
        gap: 3.5rem;
      }

      .service-editorial-col {
        padding-right: 0;
        border-right: none !important;
        border-bottom: 1px solid var(--line-color);
        padding-bottom: 2.5rem;
        min-height: auto;
      }

      .service-editorial-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
      }
    }

    @media (max-width: 768px) {
      html {
        font-size: 100%;
      }

      .section-editorial {
        padding: clamp(3.5rem, 8vh, 6rem) 0;
      }

      .grid-editorial, .grid-editorial.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
      }

      .editorial-showcase {
        order: -1; /* Place image above text on mobile */
        max-width: 480px;
        margin: 0 auto;
      }

      #editorial-hero .editorial-showcase {
        order: 1; /* In hero, keep it under the main title */
      }

      .editorial-title {
        font-size: 2.5rem !important;
        margin-bottom: 1.2rem;
      }

      .editorial-subtitle {
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem;
      }

      .contact-links-stack {
        align-items: center;
      }

      .contact-link-item {
        max-width: 100%;
      }

      .wine-form {
        padding: 1.8rem;
      }
    }
    @media (max-width: 480px) {
      .nav-inner {
        padding: 0 0.8rem;
        height: 56px;
      }
      .nav-back {
        font-size: 0.58rem;
        gap: 0.2rem;
      }
      .nav-logo {
        font-size: 1.2rem;
      }
    }
  
/* ── Mobile Menu Drawer (Desktop Hidden) ── */
.nav-drawer {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-linen);
  z-index: 105;
  box-shadow: -5px 0 25px rgba(0,0,0,0.03);
  padding: 60px 2rem 2rem 2rem;
  display: none;
  flex-direction: column;
  gap: 1.2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--line-color);
}
.nav-drawer.active { right: 0; }
.drawer-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 104;
  display: none;
}
.drawer-backdrop.active { opacity: 1; pointer-events: auto; }
.drawer-links { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.drawer-links a { font-family: var(--serif); font-size: 1.2rem; color: var(--text-plum); text-decoration: none; transition: opacity 0.2s; display: block; }
.drawer-links a:hover { opacity: 0.7; }
.drawer-divider { height: 1px; background: var(--line-color); margin: 1rem 0; }
.drawer-cta { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bg-linen); background: var(--text-plum); padding: 0.8rem; text-decoration: none; transition: opacity 0.2s; text-align: center; margin-top: auto; }
.drawer-cta:hover { opacity: 0.8; }
@media (max-width: 768px) {
  .nav-drawer { display: flex; }
  .drawer-backdrop { display: block; }
}

/* =====================================================================
   EVOLUTION LAYER  (v1.1) — refinements on top of the baseline above.
   Keeps the terracotta / linen editorial identity; tightens type,
   rhythm, nav, cards, forms, and fixes the mobile menu + no-JS reveal.
   ===================================================================== */

:root {
  --wx-ink:        #241016;
  --wx-terra:      #A63F3F;
  --wx-terra-deep: #7E2B2B;
  --wx-rule:       rgba(44, 13, 18, 0.10);
  --wx-rule-soft:  rgba(44, 13, 18, 0.06);
  --wx-shadow:     28px 40px 80px -40px rgba(44, 13, 18, 0.28);

  /* fluid type scale */
  --wx-display: clamp(3rem, 1.8rem + 4.6vw, 5rem);
  --wx-h2:      clamp(2.4rem, 1.7rem + 2.9vw, 3.6rem);
  --wx-sub:     clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --wx-body:    clamp(0.94rem, 0.9rem + 0.2vw, 1.02rem);
  --wx-eyebrow: 0.62rem;

  /* spacing rhythm */
  --wx-section: clamp(5.5rem, 4rem + 7vw, 9.5rem);
}

/* ---- typographic refinement ---- */
.editorial-title {
  font-size: var(--wx-display);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
#editorial-hero .editorial-title { font-weight: 300; }
.section-editorial h2.editorial-title { font-size: var(--wx-h2); }

.editorial-subtitle {
  font-size: var(--wx-sub);
  line-height: 1.32;
  border-left-width: 2px;
}
.editorial-tag {
  font-size: var(--wx-eyebrow);
  letter-spacing: 0.28em;
}
.editorial-desc,
.lead-paragraph { font-size: var(--wx-body); }
.editorial-desc { text-align: left; hyphens: none; }

/* ---- section rhythm + cleaner rules ---- */
.section-editorial { padding: var(--wx-section) 0; border-bottom-color: var(--wx-rule-soft); }
#editorial-hero { padding-top: calc(var(--wx-section) * 0.62 + 72px); }

/* ---- nav: quieter at rest, condenses on scroll ---- */
nav {
  background: color-mix(in srgb, var(--bg-linen) 82%, transparent);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav-inner { height: 68px; transition: height .3s cubic-bezier(0.16,1,0.3,1); }
nav.scrolled {
  background: color-mix(in srgb, var(--bg-linen) 94%, transparent);
  box-shadow: 0 1px 0 var(--wx-rule), 0 18px 40px -34px rgba(44,13,18,0.5);
  border-bottom-color: transparent;
}
nav.scrolled .nav-inner { height: 56px; }
.nav-logo { font-size: 1.5rem; letter-spacing: -0.015em; }

/* ---- mobile menu toggle: the baseline shipped it unstyled (4x4px) ---- */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin: 0 -10px 0 0;
  padding: 0;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-plum);
  transition: transform .3s cubic-bezier(0.16,1,0.3,1), opacity .2s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .lang-dropdown { margin-right: 0.4rem; }
}

/* drawer polish */
.nav-drawer { width: 300px; right: -320px; box-shadow: -30px 0 60px -30px rgba(44,13,18,0.35); }
.drawer-cta { font-size: 0.6rem; letter-spacing: 0.16em; border-radius: 2px; }
.drawer-links a { transition: color .2s ease, transform .2s ease; }
.drawer-links a:hover { color: var(--accent-terracotta); transform: translateX(3px); opacity: 1; }

/* ---- services as real cards ---- */
@media (min-width: 993px) {
  .services-grid-block { gap: 1.5rem; }
  .service-editorial-col {
    padding: 2.25rem 1.9rem;
    border: 1px solid var(--wx-rule);
    border-radius: 3px;
    background: color-mix(in srgb, var(--bg-beige) 45%, var(--bg-linen));
    transition: transform .4s cubic-bezier(0.16,1,0.3,1), box-shadow .4s ease, border-color .4s ease;
  }
  .service-editorial-col:not(:last-child) { border-right: 1px solid var(--wx-rule); }
  .service-editorial-col:hover {
    transform: translateY(-4px);
    box-shadow: var(--wx-shadow);
    border-color: color-mix(in srgb, var(--accent-terracotta) 40%, transparent);
  }
}
.service-num { font-size: 2.4rem; }
.service-header { font-size: 1.5rem; }

/* ---- contact form ---- */
.wine-form { border-radius: 3px; }
.form-group input, .form-group textarea { border-bottom-width: 1px; }
.form-submit-btn { border-radius: 2px; }
.form-submit-btn:hover { background: var(--wx-terra-deep); }

/* ---- editorial image frame ---- */
.editorial-frame { border-radius: 2px; box-shadow: var(--wx-shadow); }
.editorial-frame::after { border-color: color-mix(in srgb, var(--accent-terracotta) 55%, transparent); }

/* ---- keyboard focus, consistent everywhere ---- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- progressive enhancement: content is visible without JS ---- */
.reveal { opacity: 1; transform: none; }
html.wine-js .reveal { opacity: 0; transform: translateY(28px); }
html.wine-js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.wine-js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- CJK: give zh a real webfont stack instead of a system serif ---- */
html[lang="zh-CN"] {
  --serif: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, serif;
  --sans:  'Plus Jakarta Sans', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}
html[lang="zh-CN"] .editorial-title { letter-spacing: 0; }

/* ---- small screens ---- */
@media (max-width: 768px) {
  .editorial-title { font-size: clamp(2.4rem, 1.8rem + 5vw, 3rem) !important; }
  .editorial-subtitle { font-size: var(--wx-sub) !important; }
  .service-editorial-col { padding-bottom: 2rem; }
}

/* =====================================================================
   EVOLUTION LAYER v1.2 — story widget rebuild + deeper section polish
   ===================================================================== */

/* ---- story widget ---- */
.story-showcase { display: flex; justify-content: center; width: 100%; }
.story-embed {
  max-width: 320px;
  border-radius: 20px;
  box-shadow: 30px 44px 90px -46px rgba(44, 13, 18, 0.34);
  outline: none;
}
.story-embed::before { border-radius: 22px; opacity: 0.35; }
.story-embed:focus-visible { box-shadow: 0 0 0 3px var(--accent-terracotta), 30px 44px 90px -46px rgba(44,13,18,0.34); }

.story-progress-bar { height: 2px; background: rgba(255,255,255,0.3); }
.story-progress-fill { background: #fff; transition: width .12s linear; }

.story-id { display: flex; flex-direction: column; line-height: 1.25; }
.story-location { font-size: 0.56rem; opacity: 0.82; font-family: var(--sans); letter-spacing: 0.02em; }
.story-username { font-size: 0.74rem; }
.story-actions { display: inline-flex; opacity: 0.9; }

.story-slide { transition: opacity .4s ease; }
@media (prefers-reduced-motion: reduce) { .story-slide { transition: none; } }

/* hover chevrons (desktop) — tap zones still work on touch */
.story-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer; z-index: 25;
  color: #fff; background: rgba(0,0,0,0.28);
  opacity: 0; transition: opacity .25s ease, background .2s ease;
}
.story-nav-prev { left: 8px; }
.story-nav-next { right: 8px; }
.story-embed:hover .story-nav, .story-embed:focus-within .story-nav { opacity: 1; }
.story-nav:hover { background: rgba(0,0,0,0.5); }
@media (hover: none) { .story-nav { display: none; } }

.story-status {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- hero: calmer drop cap, tighter lockup ---- */
.lead-paragraph::first-letter {
  font-size: 3.4rem; margin-right: 0.6rem; margin-top: 0.28rem;
  color: var(--accent-terracotta); font-weight: 400;
}
#editorial-hero .editorial-tag { margin-bottom: 1.4rem; }
#editorial-hero .editorial-subtitle {
  border-left: 0; padding-left: 0; font-style: normal;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 2.2rem;
}
.editorial-caption { font-size: 0.6rem; letter-spacing: 0.16em; }

/* ---- problem / solution: vector frame + rhythm ---- */
.art-vector-frame { border-radius: 3px; box-shadow: var(--wx-shadow); }
.editorial-copy .editorial-desc:last-of-type { margin-bottom: 0; }

/* ---- contact headline block ---- */
#editorial-contact .editorial-title {
  font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.8rem);
  line-height: 1.14; letter-spacing: -0.02em;
}
.contact-card-frame { border-radius: 3px; box-shadow: var(--wx-shadow); }
.contact-card-header { font-size: 1.7rem; }
.contact-link-item { border-radius: 2px; transition: transform .3s cubic-bezier(0.16,1,0.3,1), border-color .3s ease, background .3s ease, color .3s ease; }
.contact-link-item:hover { transform: translateX(3px); }

/* ---- footer ---- */
footer { padding: 3.5rem 0; }
.footer-logo { font-size: 1.3rem; }
.footer-inner p { font-size: 0.6rem; letter-spacing: 0.14em; }

/* ---- letterpress grid: a touch quieter ---- */
body::before { opacity: 0.28; background-size: 128px 128px; }

/* =====================================================================
   EVOLUTION LAYER v1.3 — bolder hero + statement components
   Still terracotta / linen / Cormorant-Jakarta-DM Mono, pushed hard.
   ===================================================================== */

:root {
  --wx-plum:  #241016;
  --wx-linen: #F7F4EF;
  --wx-display-xl: clamp(3.6rem, 1.5rem + 9vw, 8.5rem);
  --wx-h2-xl:      clamp(2.8rem, 1.4rem + 6vw, 6rem);
}

/* ---------- HERO: deep plum stage ---------- */
#editorial-hero {
  background: var(--wx-plum);
  color: var(--wx-linen);
  min-height: 100svh;
  display: flex;
  align-items: center;
  border-bottom: 0;
  padding-top: clamp(6rem, 12vh, 9rem);
  padding-bottom: clamp(4rem, 10vh, 7rem);
  position: relative;
  overflow: hidden;
}
#editorial-hero .container-editorial { position: relative; z-index: 2; }
#editorial-hero .grid-editorial { grid-template-columns: 1.25fr 0.75fr; align-items: center; }

/* faint oversized wordmark bleed */
#editorial-hero::after {
  content: "xpco";
  position: absolute;
  right: -0.08em; bottom: -0.28em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(12rem, 34vw, 40rem);
  line-height: 0.8;
  color: rgba(247, 244, 239, 0.045);
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.04em;
}

#editorial-hero .editorial-tag { color: #E8A6A6; margin-bottom: 1.6rem; }
#editorial-hero .editorial-tag::before { background: #E8A6A6; width: 40px; }

#editorial-hero .editorial-title {
  font-size: var(--wx-display-xl);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--wx-linen);
  margin-bottom: 1.6rem;
}
#editorial-hero .editorial-title em { color: #C86B6B; font-weight: 300; }

#editorial-hero .editorial-subtitle {
  color: rgba(247, 244, 239, 0.62);
  font-size: 0.72rem;
}

#editorial-hero .lead-paragraph {
  color: rgba(247, 244, 239, 0.9);
  max-width: 34ch;
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.18rem);
}
#editorial-hero .lead-paragraph::first-letter {
  color: #C86B6B;
  font-size: 3.8rem;
}

/* hero image: gallery print on a linen mat */
#editorial-hero .editorial-frame {
  background: var(--wx-linen);
  padding: 0.9rem;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.65);
}
#editorial-hero .editorial-frame::after {
  border-color: rgba(232, 166, 166, 0.6);
  top: -14px; left: -14px; right: 14px; bottom: 14px;
}
#editorial-hero .editorial-frame img { filter: none; }
#editorial-hero .editorial-caption {
  color: var(--text-muted);
  border-top-color: var(--line-color);
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-size: 0.56rem;
}

/* scroll cue */
#editorial-hero .container-editorial::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2.4rem;
  width: 1px; height: 3rem;
  background: linear-gradient(to bottom, transparent, rgba(247,244,239,0.5));
}

/* ---------- NAV adapts over the plum hero ---------- */
nav:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
nav:not(.scrolled) .nav-logo,
nav:not(.scrolled) .nav-back { color: var(--wx-linen); }
nav:not(.scrolled) .nav-logo span { color: #C86B6B; }
nav:not(.scrolled) .nav-back:hover { color: rgba(247,244,239,0.7); }
nav:not(.scrolled) .lang-dropdown-btn {
  color: rgba(247,244,239,0.85);
  background: rgba(247,244,239,0.08);
  border-color: rgba(247,244,239,0.25);
}
nav:not(.scrolled) .menu-toggle span { background: var(--wx-linen); }

/* ---------- SECTION TITLES: statement scale ---------- */
.section-editorial h2.editorial-title {
  font-size: var(--wx-h2-xl);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.section-editorial .editorial-tag {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
}
.editorial-subtitle {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  border-left-width: 3px;
}

/* ---------- SERVICE CARDS: bolder ---------- */
@media (min-width: 993px) {
  .services-grid-block { gap: 0; border: 1px solid var(--wx-rule); border-radius: 3px; overflow: hidden; }
  .service-editorial-col {
    padding: 2.75rem 2.1rem 2.4rem;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
  }
  .service-editorial-col:not(:last-child) { border-right: 1px solid var(--wx-rule) !important; }
  .service-editorial-col::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent-terracotta);
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s cubic-bezier(0.16,1,0.3,1);
  }
  .service-editorial-col:hover { transform: none; box-shadow: none; }
  .service-editorial-col:hover::before { transform: scaleX(1); }
}
.service-num {
  font-size: 3.4rem;
  font-style: italic;
  color: var(--accent-terracotta);
  opacity: 0.9;
}
.service-header { font-size: 1.7rem; letter-spacing: -0.015em; margin-bottom: 1.1rem; }
.servico-link {
  font-size: 0.62rem;
  border-bottom-width: 1px;
  padding-bottom: 6px;
}
.servico-link:hover { transform: translateX(6px); }

/* section eyebrow of the services block as an oversized index */
#editorial-services > .container-editorial > .reveal:first-child { position: relative; }

/* ---------- CONTACT: statement headline ---------- */
#editorial-contact .editorial-title {
  font-size: clamp(2.6rem, 1.4rem + 5.5vw, 5.5rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  font-weight: 300;
}
.contact-card-header { font-size: 1.9rem; }

/* ---------- BUTTONS with presence ---------- */
.form-submit-btn {
  padding: 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  border-radius: 2px;
}
.drawer-cta { padding: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  #editorial-hero { min-height: 92svh; }
  #editorial-hero .grid-editorial { grid-template-columns: 1fr; }
  #editorial-hero .editorial-showcase { order: 1; max-width: 320px; margin-top: 2.5rem; }
  #editorial-hero::after { font-size: 40vw; }
  .section-editorial h2.editorial-title { font-size: clamp(2.6rem, 2rem + 7vw, 3.4rem); }
}



/* =====================================================================
   EVOLUTION LAYER v1.4 — FAQ + "Ask Rodrigo" sections
   ===================================================================== */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- FAQ ---------- */
#editorial-faq .faq-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.faq-list {
  max-width: 860px;
  border-top: 1px solid var(--wx-rule);
}
.faq-item { border-bottom: 1px solid var(--wx-rule); }
.faq-q { margin: 0; }
.faq-q button {
  width: 100%;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 400;
  color: var(--text-plum);
  transition: color .2s ease;
}
.faq-q button:hover { color: var(--accent-terracotta); }
.faq-mark {
  flex: none;
  color: var(--accent-terracotta);
  transition: transform .3s cubic-bezier(0.16,1,0.3,1);
  transform: translateY(2px);
}
.faq-q button[aria-expanded="true"] .faq-mark { transform: translateY(2px) rotate(135deg); }
.faq-a {
  overflow: hidden;
  color: var(--text-muted);
  font-size: var(--wx-body);
  line-height: 1.8;
}
.faq-a[hidden] { display: none; }
.faq-a p { padding: 0 0 1.6rem; max-width: 62ch; }

/* ---------- Ask Rodrigo ---------- */
#editorial-ask { background: color-mix(in srgb, var(--bg-beige) 55%, var(--bg-linen)); }
.ask-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ask-intro { margin-top: 1.2rem; }

.ask-panel {
  max-width: 720px;
  background: var(--bg-linen);
  border: 1px solid var(--wx-rule);
  border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--wx-shadow);
}

.ask-log {
  display: flex; flex-direction: column; gap: 0.9rem;
  min-height: 0;
  max-height: 420px; overflow-y: auto;
  margin-bottom: 1.1rem;
}
.ask-log:empty { display: none; }

.ask-msg { display: flex; }
.ask-msg-user { justify-content: flex-end; }
.ask-bubble {
  max-width: 82%;
  padding: 0.8rem 1.05rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.65;
}
.ask-msg-user .ask-bubble {
  background: var(--text-plum); color: var(--bg-linen);
  border-bottom-right-radius: 4px;
}
.ask-msg-bot .ask-bubble {
  background: var(--bg-beige); color: var(--text-plum);
  border-bottom-left-radius: 4px;
}
.ask-thinking .ask-dots {
  display: inline-block;
  padding: 0.7rem 1rem;
  background: var(--bg-beige); border-radius: 14px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.ask-thinking .ask-dots::after {
  content: "…"; animation: askdots 1.2s steps(4, end) infinite;
}
@keyframes askdots { 0% { content: "";} 25% { content: "·";} 50% { content: "··";} 75% { content: "···";} }
@media (prefers-reduced-motion: reduce) { .ask-thinking .ask-dots::after { animation: none; content: "…"; } }

.ask-suggest { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ask-suggest:empty { display: none; }
.ask-chip {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--wx-rule);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.ask-chip:hover { color: var(--text-plum); border-color: var(--accent-terracotta); background: color-mix(in srgb, var(--accent-terracotta) 8%, transparent); }

.ask-form { display: flex; gap: 0.6rem; }
.ask-form input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--wx-rule);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--text-plum);
}
.ask-form input:focus { outline: none; border-color: var(--accent-terracotta); }
.ask-form button {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-linen); background: var(--text-plum);
  border: 0; border-radius: 3px; padding: 0 1.4rem; cursor: pointer;
  transition: background .25s ease;
}
.ask-form button:hover { background: var(--wx-terra-deep); }
.ask-panel.is-busy .ask-form button { opacity: 0.55; }

.ask-disclaimer {
  margin-top: 1rem;
  font-family: var(--mono); font-size: 0.62rem; line-height: 1.6;
  letter-spacing: 0.03em; color: var(--text-muted);
}

@media (max-width: 560px) {
  .ask-form { flex-wrap: wrap; }
  .ask-form button { width: 100%; padding: 0.9rem; }
  .ask-bubble { max-width: 90%; }
}
