/* ============================================================
   Stitchwerk — BERNINA-inspired demo homepage
   A clean, Swiss-modern palette: warm whites, deep charcoal,
   and a single confident red accent.
   ============================================================ */

:root {
  --bg: #f5f3ef;
  --bg-2: #ebe7df;
  --paper: #ffffff;
  --ink: #15161a;
  --ink-2: #2b2d33;
  --mute: #6b6d75;
  --line: #d9d4cb;
  --line-2: #cfc9bd;
  --accent: #c8102e;
  --accent-2: #8b0a1e;
  --gold: #b39058;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 243, 239, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar {
  background: var(--ink);
  color: #d9d4cb;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.bar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.bar__msg { opacity: 0.9; }
.bar__util { display: flex; gap: 18px; }
.bar__util a:hover { color: #fff; }

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 20px;
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 2px 0 rgba(0,0,0,0.05);
}
.brand__name {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 16px;
}

.primary {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.primary a {
  position: relative;
  padding: 6px 0;
}
.primary a::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.25s ease, left 0.25s ease;
}
.primary a:hover::after { width: 100%; left: 0; }

.nav__cta { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  background: none; border: 1px solid var(--line-2);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: var(--paper); border-color: var(--ink); }

.cta-link {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.cta-link:hover { background: var(--accent); color: #fff; }

@media (max-width: 880px) {
  .primary { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: clamp(520px, 78vh, 820px);
  overflow: hidden;
  background: #0d0e10;
}

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%),
    linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 6vh, 64px);
  max-width: 520px;
  color: #fff;
  text-shadow: 0 1px 20px rgba(0,0,0,0.25);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.hero__copy {
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 440px;
  margin: 0 0 22px;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  color: rgba(255,255,255,0.85);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
.hero__meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.5);
  animation: pulse 2.4s infinite;
}
.hero__meta .bar-vert {
  display: inline-block;
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.4);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

@media (max-width: 680px) {
  .hero__meta { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); color: #fff; }
.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover { gap: 12px; color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span { transform: translateX(2px); }

/* ============================================================
   STRIP (highlight pills)
   ============================================================ */

.strip {
  background: var(--ink);
  color: #d9d4cb;
  border-bottom: 1px solid #000;
}
.strip__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.pill {
  font-size: 13.5px;
  letter-spacing: 0.04em;
}
.pill strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  color: #fff;
  margin-right: 8px;
  letter-spacing: 0;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 100px) var(--gutter) clamp(24px, 4vw, 40px);
  display: grid;
  gap: 8px;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin: 0;
  max-width: 720px;
  letter-spacing: -0.005em;
}

/* ============================================================
   TILES
   ============================================================ */

.tiles__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .tiles__grid { grid-template-columns: 1fr; }
}

.tile {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.25);
}

.tile__art {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.tile__art::before,
.tile__art::after {
  content: "";
  position: absolute;
  inset: 0;
}
.tile--a .tile__art {
  background:
    radial-gradient(circle at 30% 35%, #fff 0%, #ece8e0 40%, #d6cfc0 100%);
}
.tile--a .tile__art::before {
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(0,0,0,0.04) 18px 19px);
}
.tile--a .tile__art::after {
  background:
    radial-gradient(ellipse at 70% 70%, rgba(200,16,46,0.18) 0%, transparent 55%);
}
.tile--b .tile__art {
  background:
    linear-gradient(135deg, #1c1d20 0%, #2b2d33 100%);
}
.tile--b .tile__art::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,0.06) 30px 31px);
}
.tile--b .tile__art::after {
  background:
    radial-gradient(circle at 60% 50%, rgba(200,16,46,0.45) 0%, transparent 45%);
}
.tile--c .tile__art {
  background:
    linear-gradient(160deg, #e7d6b1 0%, #c8a76f 60%, #b39058 100%);
}
.tile--c .tile__art::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.18) 100%);
}
.tile--c .tile__art::after {
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.0) 0deg 8deg, rgba(255,255,255,0.08) 8deg 9deg);
}

.tile__body {
  padding: 22px 24px 26px;
}
.tile__kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 8px;
}
.tile h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 8px;
}
.tile p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 16px;
}

/* ============================================================
   BAND (Heritage)
   ============================================================ */

.band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) var(--gutter);
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.band__eyebrow { color: var(--accent); }
.band__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.band__title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.band__copy {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 0 14px;
}

/* ============================================================
   GRID 2 (Inspiration features)
   ============================================================ */

.grid-2 {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 110px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; } }

.feature {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature__art {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.feature__art--ribbon {
  background:
    linear-gradient(135deg, #f3eee4 0%, #e3dcce 100%);
}
.feature__art--ribbon::before {
  content: "";
  position: absolute;
  left: -10%; top: 20%;
  width: 130%; height: 60%;
  background:
    repeating-linear-gradient(20deg,
      var(--accent) 0 24px,
      #a30821 24px 48px,
      #c8102e 48px 72px,
      #fff 72px 76px);
  transform: rotate(-6deg);
  opacity: 0.85;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
}
.feature__art--workshop {
  background: #1c1d20;
}
.feature__art--workshop::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(200,16,46,0.25) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 36px, rgba(255,255,255,0.04) 36px 37px),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255,255,255,0.04) 36px 37px);
}
.feature__body { padding: 24px 26px 30px; }
.feature__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  margin: 6px 0 10px;
}
.feature__body p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 16px;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */

.newsletter {
  background: var(--ink);
  color: #e3ddd0;
}
.newsletter__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) { .newsletter__inner { grid-template-columns: 1fr; } }
.newsletter h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  margin: 6px 0 10px;
}
.newsletter p { margin: 0; max-width: 460px; }
.newsletter .eyebrow { color: var(--accent); }

.newsletter__form {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 6px;
}
.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 15px;
  padding: 10px 16px;
  min-width: 0;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter__form button {
  background: var(--accent);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.newsletter__form button:hover { background: var(--accent-2); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #0c0d0f;
  color: #9fa1a8;
}
.footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 80px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

.footer__col { display: grid; gap: 10px; }
.footer__head {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.footer__col a {
  font-size: 14.5px;
  color: #9fa1a8;
}
.footer__col a:hover { color: #fff; }

.brand--footer .brand__mark { transform: rotate(-4deg); }
.brand--footer .brand__name { color: #fff; }

.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  margin: 12px 0 0;
  color: #b9bbc2;
  font-size: 16px;
  line-height: 1.4;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px var(--gutter) 36px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.6;
  color: #76787f;
}
.footer__bottom strong { color: #b9bbc2; font-weight: 600; }

/* ============================================================
   Reduced motion preferences
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__video { display: none; }
  .hero { background: linear-gradient(135deg, #1c1d20, #2b2d33); }
}
