/* ============================================
   THE STRAND FILES - Landing Page
   Victorian aesthetic, modern clarity
   ============================================ */

:root {
  --parchment: #f4e4c1;
  --parchment-light: #faf6ef;
  --parchment-dark: #e8d4a8;
  --ink: #2c1810;
  --ink-light: #4a3728;
  --sepia: #704214;
  --sepia-light: #8b6914;
  --gold: #b8965a;
  --gold-bright: #d4af6a;
  --border: #c4b8a0;
  --border-dark: #8b7355;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--parchment-light) 0%, var(--parchment) 50%, var(--parchment-dark) 100%);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

/* ============================================
   Corner Ornaments
   ============================================ */

.corner-ornament {
  position: fixed;
  width: 100px;
  height: 100px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 10;
  background: url("images/corner-ornament.png") no-repeat center;
  background-size: contain;
}

.top-left {
  top: 15px;
  left: 15px;
}

.top-right {
  top: 15px;
  right: 15px;
  transform: scaleX(-1);
}

.bottom-left {
  bottom: 15px;
  left: 15px;
  transform: scaleY(-1);
}

.bottom-right {
  bottom: 15px;
  right: 15px;
  transform: scale(-1, -1);
}

/* ============================================
   Container
   ============================================ */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ============================================
   Header
   ============================================ */

.header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

/* Title plaque - brass plate style */
.title-plaque {
  display: inline-block;
  position: relative;
  text-align: center;
  padding: 2rem 4rem 2.5rem;
  background:
    /* Brushed metal texture */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"),
    /* Darker brass gradient */
    linear-gradient(170deg,
      #c4a070 0%,
      #a8864a 15%,
      #8b6d3a 40%,
      #705828 60%,
      #8b6d3a 80%,
      #a8864a 100%
    );
  background-blend-mode: overlay, normal;
  border: 2px solid #5a4520;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Engraved border effect */
.title-plaque::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.plaque-title {
  font-family: 'IM Fell English SC', 'Cinzel', serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #2a1810;
  margin: 0;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.25),
    -1px -1px 0 rgba(0, 0, 0, 0.15);
}

.plaque-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 15%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.3) 85%,
    transparent 100%
  );
  margin: 0.75rem auto;
  position: relative;
}

/* Diamond ornament on divider */
.plaque-divider::before {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  color: #3a2820;
  background: linear-gradient(170deg, #a8864a, #8b6d3a);
  padding: 0 0.5rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.plaque-subtitle {
  font-family: 'IM Fell English', 'EB Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #3a2820;
  margin: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Corner rivets */
.plaque-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    #a8864a 0%,
    #6a5530 50%,
    #4a3820 100%
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4);
}

.plaque-corner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2a1810;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}

.plaque-corner-tl { top: 10px; left: 12px; }
.plaque-corner-tr { top: 10px; right: 12px; }
.plaque-corner-bl { bottom: 10px; left: 12px; }
.plaque-corner-br { bottom: 10px; right: 12px; }

/* ============================================
   Hero Section - Full Width with Background
   ============================================ */

.hero {
  width: 100%;
  margin-bottom: 0;
  background:
    linear-gradient(180deg,
      rgba(244, 228, 193, 0.82) 0%,
      rgba(244, 228, 193, 0.7) 50%,
      rgba(244, 228, 193, 0.82) 100%
    ),
    url("images/dispatch-box.png") center center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem 4rem;
}

.hero .header {
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.card-frame {
  background: var(--parchment-light);
  padding: 3px;
  position: relative;
}

.card-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px solid var(--border-dark);
  pointer-events: none;
}

.card-content {
  padding: 3rem;
  text-align: center;
}

.intro-text {
  font-size: 1.4rem;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}

.intro-text:last-child {
  margin-bottom: 0;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
}

.intro-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================
   Reveal Section (Transition)
   ============================================ */

.reveal {
  margin-bottom: 4rem;
  text-align: center;
}

.reveal-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.reveal-text {
  font-size: 1.3rem;
  color: var(--ink-light);
  line-height: 1.9;
}

.reveal-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================
   Trailer
   ============================================ */

.trailer {
  margin-bottom: 4rem;
  text-align: center;
}

.trailer-frame {
  max-width: 720px;
  margin: 0 auto;
  padding: 3px;
  border: 2px solid var(--border-dark);
  background: var(--parchment-dark);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px var(--border);
  position: relative;
}

.trailer-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--border-dark);
  pointer-events: none;
  opacity: 0.4;
}

.trailer-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.trailer-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   Section Titles
   ============================================ */

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '~';
  display: block;
  color: var(--sepia);
  font-size: 1.2rem;
  margin-top: 0.5rem;
  opacity: 0.6;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  margin-bottom: 4rem;
}

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

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-image-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--border-dark);
  border-radius: 50%;
  overflow: hidden;
  background: var(--parchment-light);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.step-image-container:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 25px rgba(184, 150, 90, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px var(--border);
}

.step-image-container.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment-dark);
  border-style: dashed;
}

.step-number-large {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--border-dark);
  opacity: 0.5;
}

.step-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) contrast(1.05);
}

.step-number {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--sepia);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.step-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.step-text {
  font-size: 1.15rem;
  color: var(--ink-light);
  line-height: 1.8;
}

/* ============================================
   Features
   ============================================ */

.features {
  margin-bottom: 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  text-align: center;
}

.feature::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: 0.5;
}

.feature-image-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-dark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.feature-image-container:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 20px rgba(184, 150, 90, 0.5),
    0 6px 15px rgba(0, 0, 0, 0.2);
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(40%) contrast(1.05) brightness(0.95);
}

.feature-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.feature-text {
  font-size: 1.1rem;
  color: var(--ink-light);
  line-height: 1.8;
}

/* ============================================
   Technology
   ============================================ */

.technology {
  margin-bottom: 4rem;
}

.tech-card {
  background: var(--parchment-dark);
  padding: 2.5rem;
  border: 1px solid var(--border);
  position: relative;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--border-dark);
  pointer-events: none;
  opacity: 0.4;
}

.tech-card .section-title {
  margin-bottom: 1.5rem;
}

.tech-card .section-title::after {
  display: none;
}

.tech-text {
  font-size: 1.2rem;
  color: var(--ink-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.tech-text:last-child {
  margin-bottom: 0;
}

/* ============================================
   Call to Action
   ============================================ */

.cta {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  margin-bottom: 4rem;
  background:
    linear-gradient(180deg,
      rgba(244, 228, 193, 0.85) 0%,
      rgba(244, 228, 193, 0.7) 50%,
      rgba(244, 228, 193, 0.85) 100%
    ),
    url("images/cta-bg.png") center center;
  background-size: cover;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-card {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--parchment-light);
  background: linear-gradient(180deg, var(--ink-light) 0%, var(--ink) 100%);
  padding: 1.1rem 3.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
  background: linear-gradient(180deg, var(--sepia) 0%, var(--ink-light) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--parchment-light);
}

.cta-button::before,
.cta-button::after {
  content: '';
  position: absolute;
  background: var(--gold);
  opacity: 0.6;
}

.cta-button::before {
  width: calc(100% - 16px);
  height: 1px;
  top: 6px;
  left: 8px;
}

.cta-button::after {
  width: calc(100% - 16px);
  height: 1px;
  bottom: 6px;
  left: 8px;
}

.cta-note {
  font-size: 1.05rem;
  color: var(--ink-light);
  margin-top: 1rem;
  opacity: 0.8;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-ornament {
  color: var(--sepia);
  font-size: 1.2rem;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--sepia);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-divider {
  color: var(--border);
  margin: 0 1rem;
}

.footer-small {
  font-size: 0.95rem;
  color: var(--ink-light);
  opacity: 0.7;
  line-height: 1.8;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 2rem 1.5rem;
  }

  .corner-ornament {
    width: 50px;
    height: 50px;
  }

  .corner-ornament::before {
    width: 35px !important;
  }

  .corner-ornament::after {
    height: 35px !important;
  }

  /* Hero responsive */
  .hero {
    padding: 2rem 1rem;
  }

  .hero-image-container {
    max-width: 100%;
    margin-bottom: 2rem;
    border-width: 4px;
  }

  .card-content {
    padding: 2rem 1.5rem;
  }

  .intro-text {
    font-size: 1.1rem;
  }

  /* Steps responsive */
  .steps {
    gap: 1rem;
  }

  .step-image-container {
    width: 160px;
    height: 160px;
  }

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

  .tech-card {
    padding: 1.5rem;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  /* Plaque responsive */
  .title-plaque {
    padding: 1.25rem 2rem 1.5rem;
  }

  .plaque-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .corner-ornament {
    display: none;
  }

  .title-plaque {
    padding: 1rem 1.5rem 1.25rem;
  }

  .plaque-title {
    letter-spacing: 0.08em;
  }

  .plaque-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
  }

  .plaque-corner {
    width: 10px;
    height: 10px;
  }

  .plaque-corner::before {
    width: 3px;
    height: 3px;
  }

  .plaque-corner-tl { top: 8px; left: 10px; }
  .plaque-corner-tr { top: 8px; right: 10px; }
  .plaque-corner-bl { bottom: 8px; left: 10px; }
  .plaque-corner-br { bottom: 8px; right: 10px; }

  .hero-image-container {
    border-width: 3px;
  }

  .step-image-container {
    width: 140px;
    height: 140px;
  }
}
