/* Layout: one centred column on warm paper; the real textiles carry the colour, type stays quiet. */
:root {
  --paper: #f6f1e8; --card: #fffdf8; --ink: #211b17; --muted: #6d6159; --accent: #7a1f2b; --gold: #b8922a; --rule: #e3d9cb;
  --wa: #1f9d52; --radius: 14px; --shadow: 0 12px 34px rgba(33,27,23,.09); --shadow-sm: 0 2px 10px rgba(33,27,23,.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171310; --card: #211b16; --ink: #f1e9dd; --muted: #b3a392; --accent: #e26b8a; --gold: #d8b44c; --rule: #352c25;
    --shadow: 0 12px 34px rgba(0,0,0,.45); --shadow-sm: 0 2px 10px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171310; --card: #211b16; --ink: #f1e9dd; --muted: #b3a392; --accent: #e26b8a; --gold: #d8b44c; --rule: #352c25;
  --shadow: 0 12px 34px rgba(0,0,0,.45); --shadow-sm: 0 2px 10px rgba(0,0,0,.4); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Source Sans 3", -apple-system, "Segoe UI", sans-serif; font-size: 17px; color: var(--ink); background: var(--paper); line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -.005em; line-height: 1.12; margin: 0; text-wrap: balance; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100%); margin: 0 auto; min-width: 0; }
.eyebrow { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font-size: 15.5px; font-family: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.small { padding: 7px 13px; font-size: 13.5px; }
.btn.ghost { border-color: var(--rule); background: var(--card); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
nav .brand { font-family: "Playfair Display", serif; font-weight: 700; font-size: 21px; text-decoration: none; letter-spacing: -.01em; }
nav .links { display: flex; gap: 26px; font-size: 15px; }
nav .links a { text-decoration: none; color: var(--muted); }
nav .links a:hover { color: var(--ink); }
@media (max-width: 720px) { nav .links { display: none; } }

.hero { padding: 84px 0 56px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); }
.hero p.lead { font-size: 19.5px; color: var(--muted); margin: 20px 0 30px; max-width: 46ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .proof { margin-top: 24px; font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.hero .collage img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--rule); }
.hero .stack { position: relative; height: 560px; }
.hero .stack img { position: absolute; width: 66%; border-radius: 6px; box-shadow: var(--shadow); border: 1px solid var(--rule); background: #fff; }
.hero .stack img:nth-child(1) { right: 0; top: 0; transform: rotate(3deg); opacity: .9; }
.hero .stack img:nth-child(2) { left: 0; top: 70px; transform: rotate(-2deg); z-index: 2; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 32px; } .hero .stack { height: 440px; } }

section.block { padding: 64px 0; }
section.block > .wrap > h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 10px; }
section.block > .wrap > p.sub { color: var(--muted); margin: 0 0 36px; max-width: 62ch; font-size: 17.5px; }
.divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 26px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; font-family: "Playfair Display", serif; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.sample { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.sample:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sample .preview { position: relative; background: var(--rule); aspect-ratio: 210 / 297; overflow: hidden; max-width: 100%; }
.sample .preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }
.sample .preview img.hidden { display: none; }
.sample .seg { position: absolute; top: 12px; right: 12px; display: flex; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(6px); border-radius: 999px; padding: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.sample .seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); font-family: inherit; }
.sample .seg button.on { background: var(--ink); color: var(--paper); }
.sample .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sample h3 { font-size: 21px; }
.sample .meta { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.sample .meta b { color: var(--accent); font-weight: 600; }
.sample p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; line-height: 1.5; }
.sample .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }

.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.skin { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.skin .thumb { aspect-ratio: 3 / 2; background: var(--rule) center / cover no-repeat; position: relative; cursor: zoom-in; }
.skin .thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.skin .sw { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 4px; }
.skin .sw i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.skin .text { padding: 14px 16px 16px; }
.skin h3 { font-size: 17.5px; margin-bottom: 4px; }
.skin p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.tier.popular { border-color: var(--gold); box-shadow: var(--shadow); position: relative; }
.tier.popular::before { content: "Most chosen"; position: absolute; top: -12px; left: 24px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.tier h3 { font-size: 21px; }
.tier .price { font-family: "Playfair Display", serif; font-size: 42px; font-weight: 600; margin: 8px 0 16px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; color: var(--muted); font-size: 15.5px; display: grid; gap: 9px; flex: 1; }
.tier ul li::before { content: "✓ "; color: var(--gold); font-weight: 700; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

.faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16.5px; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.cta { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 56px 24px; text-align: center; margin: 24px 0 64px; }
.cta h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 10px; }
.cta p { color: var(--paper); opacity: .78; margin: 0 0 26px; }

footer { border-top: 1px solid var(--rule); padding: 30px 0 44px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.credits { margin-top: 18px; font-size: 12.5px; }
.credits summary { cursor: pointer; font-weight: 600; }
.credits ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 4px; }
.credits a { color: var(--muted); }

.modal { position: fixed; inset: 0; background: rgba(20,15,12,.84); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal.open { display: flex; }
.modal .inner { max-width: 100%; max-height: 100%; position: relative; }
.modal video { height: min(84vh, 1280px); max-width: 100%; border-radius: 12px; background: #000; }
.modal .strip { display: flex; gap: 10px; overflow-x: auto; max-width: 92vw; padding: 8px; }
.modal img.big { display: block; max-height: 82vh; max-width: 92vw; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal .cap { color: #fff; text-align: center; margin-top: 12px; font-size: 15px; display: flex; gap: 14px; align-items: center; justify-content: center; }
.modal .strip img { height: min(70vh, 960px); border-radius: 8px; flex: none; }
.modal .close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 20px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sample, .btn { transition: none; } }

/* ---------- Knot Story home ---------- */
nav .brand .sub { font-family: "Source Sans 3", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-left: 10px; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.service { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service .art { aspect-ratio: 4 / 3; background: var(--rule) center / cover no-repeat; }
.service.soon .art { filter: saturate(.55); opacity: .85; }
.service .text { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service .status { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--wa); color: #fff; }
.service.soon .status { background: var(--rule); color: var(--muted); }
.service h3 { font-size: 20px; }
.service p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.service .go { color: var(--accent); font-weight: 700; font-size: 15px; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .service { transition: none; } }

/* ---------- Cards page ---------- */
.sample .preview.tall { aspect-ratio: 4 / 5; background-size: cover; background-position: center; cursor: zoom-in; }
.sample.placeholder .preview { display: grid; place-items: center; }
.sample.placeholder .ghost { width: 62%; aspect-ratio: 3 / 4; border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--paper) 72%, transparent); display: grid; place-content: center; text-align: center; gap: 6px; padding: 16px; }
.sample.placeholder .ghost span { font-family: "Playfair Display", serif; font-size: 18px; color: var(--ink); }
.sample.placeholder .ghost small { font-size: 12px; color: var(--muted); line-height: 1.3; }
