@font-face {
  font-family: 'AvachiSerif';
  src: url('./assets/fonts/d-corm-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AvachiItalic';
  src: url('./assets/fonts/f-fraunces-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'AvachiSans';
  src: url('./assets/fonts/d-inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AvachiSans';
  src: url('./assets/fonts/d-inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F6F2E9;
  --paper: #FDFBF7;
  --forest: #1C4528;
  --forest-hover: #14341E;
  --ink: #1D231E;
  --ink-muted: #505951;
  --border: rgba(28, 69, 40, 0.16);
  --serif: 'AvachiSerif', Georgia, serif;
  --italic: 'AvachiItalic', Georgia, serif;
  --sans: 'AvachiSans', system-ui, -apple-system, sans-serif;
}

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

html {
  color-scheme: light;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream);
}

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

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

.page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.copy-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(1.75rem, 4.5vw, 3.75rem) clamp(1.5rem, 5.5vw, 5rem);
}

.brand-head img {
  display: block;
  width: clamp(104px, 12vw, 134px);
  height: auto;
}

.copy-body {
  max-width: 54ch;
}

.copy-body h1 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 5.2vw, 4.35rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--forest);
  text-wrap: balance;
}

.copy-body h1 em {
  font-family: var(--italic);
  font-style: italic;
}

.lead {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--ink);
}

.sublead {
  margin: 0 0 2rem;
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.78rem 1.35rem;
  background: var(--forest);
  color: var(--paper);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background-color 150ms ease, transform 150ms ease;
}

.cta-primary:hover {
  background: var(--forest-hover);
}

.contact-foot {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wa-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

.wa-label {
  font-weight: 500;
  color: var(--forest);
}

.wa-row a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(28, 69, 40, 0.35);
}

.wa-row a:hover {
  color: var(--forest);
  text-decoration-color: var(--forest);
}

.origin-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Right Visual Column */
.visual-col {
  padding: clamp(1rem, 2.5vw, 2rem);
  display: flex;
}

.loom-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 460px;
  border-radius: 18px;
  overflow: hidden;
  background: #233B2A;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.flow-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
}

.cloth-layer {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  opacity: 0.24;
  mix-blend-mode: luminosity;
  z-index: 0;
}

.thread-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.warp-threads line,
.weft-threads line {
  stroke: rgba(246, 242, 233, 0.22);
  stroke-width: 1;
}

.bag-frame {
  position: relative;
  z-index: 2;
  width: min(76%, 430px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.bag-subject {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 42px rgba(10, 18, 12, 0.42));
}

.motion-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  min-height: 36px;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 242, 233, 0.34);
  background: rgba(20, 38, 25, 0.72);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.motion-toggle:hover {
  background: rgba(20, 38, 25, 0.92);
}

/* Gentle compositor-only ambient weave motion, strictly opt-in */
@keyframes bagBreath {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.018);
  }
}

@keyframes clothDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-1.5%, -1%, 0) scale(1.03);
  }
}

@keyframes weftGlide {
  0%, 100% {
    opacity: 0.45;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.95;
    transform: translate3d(0, 10px, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .loom-stage:not(.is-paused) .bag-subject {
    animation: bagBreath 9s ease-in-out infinite;
  }
  .loom-stage:not(.is-paused) .cloth-layer {
    animation: clothDrift 18s ease-in-out infinite;
  }
  .loom-stage:not(.is-paused) .weft-threads {
    animation: weftGlide 11s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
  }
  .visual-col {
    order: -1;
    padding: 1rem 1rem 0;
  }
  .loom-stage {
    min-height: 300px;
  }
  .bag-frame {
    width: min(62%, 270px);
  }
}
