:root {
  --bg: #FDFBF7;
  --accent: #D9532B;
  --ink: #23221D;
  --muted: #55534A;
  --faint: #8A887D;
  --plum: #6E2B4E;
  --plum-dark: #5A2340;
  --tint: #F8F1E3;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Instrument Sans', sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #F2D3BC; }

img { max-width: 100%; }

.wrap { max-width: 1100px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 600;
}

.accent-em { font-style: italic; font-family: 'Newsreader', serif; color: var(--accent); }
.accent-strong { color: var(--accent); font-weight: 700; }
.link-accent { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Buttons ---------- */
.btn {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--plum); color: var(--bg); padding: 15px 30px; }
.btn--primary:hover { background: var(--plum-dark); }
.btn--text {
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid rgba(35,34,29,0.3);
  padding-bottom: 2px; border-radius: 0;
}
.btn--text:hover { border-bottom-color: #B23A6F; color: #B23A6F; }
.btn--outline {
  border: 1.5px solid var(--plum); color: var(--plum-dark);
  background: transparent; padding: 12px 20px; font-size: 15px;
}
.btn--outline:hover { background: var(--plum); color: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35,34,29,0.07);
}
.nav__inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Newsreader', serif; font-size: 21px; font-weight: 500;
  color: var(--plum); text-decoration: none; letter-spacing: 0.01em;
}
.nav__logo { height: 36px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 14.5px; }
.nav__link { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.nav__link:hover { color: var(--ink); }
.nav__lang {
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid rgba(35,34,29,0.18); border-radius: 999px;
  padding: 6px 10px; cursor: pointer; outline: none;
}
.nav__lang:focus { border-color: var(--plum); }
.nav__cta { background: var(--plum); color: var(--bg); text-decoration: none; padding: 9px 18px; border-radius: 999px; font-weight: 500; transition: background 0.2s ease; }
.nav__cta:hover { background: var(--plum-dark); }

/* mobile nav: hide text links, keep lang + CTA */
@media (max-width: 720px) {
  .nav__link { display: none; }
  .nav__inner { gap: 12px; }
}
@media (max-width: 460px) {
  .nav__brand span { display: none; } /* keep the logo mark, drop the wordmark */
  .nav__inner { padding: 14px 18px; }
  .nav__cta { padding: 8px 14px; }
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(64px, 9vh, 110px); padding-bottom: clamp(64px, 9vh, 110px); }
.section--work { padding-bottom: 0; }
.section--tint { background: var(--tint); border-top: 1px solid rgba(35,34,29,0.06); border-bottom: 1px solid rgba(35,34,29,0.06); }
.section__head { max-width: 560px; }
.section__title { margin: 0; font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; }
.section__intro { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) 24px clamp(64px, 10vh, 120px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 6vw, 72px); align-items: center;
}
.hero__title { margin: 0; font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(38px, 6.5vw, 66px); line-height: 1.12; letter-spacing: -0.01em; }
.hero__sub { margin: 26px 0 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; }
.hero__art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero__badge {
  position: absolute; right: -10px; bottom: -16px;
  background: var(--plum); color: var(--bg); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; transform: rotate(2deg);
  box-shadow: 0 8px 20px rgba(110,43,78,0.25); z-index: 12;
  opacity: 0; animation: buildBlock 0.6s ease 5.6s forwards;
}

/* ---------- Hero: work postcards scattered on the table, main one on top ---------- */
.pile { position: absolute; inset: 0; z-index: 1; }
.pile .mini {
  position: absolute; width: 280px;
  background: #FFFDF8; border: 1px solid rgba(35,34,29,0.1); border-radius: 11px;
  overflow: hidden; box-shadow: 0 16px 38px rgba(110,43,78,0.16);
}
.pile .mini-img { aspect-ratio: 1200 / 630; background: #EEE8DC; }
.pile .mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pile .mini-cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 15px 10px;
}
.pile .mini-name { font-family: 'Caveat', cursive; font-size: 19px; line-height: 1.15; color: #3A3230; white-space: nowrap; }
.pile .mini-country { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
/* D'Tailor top-left, Alegria top-right, Rigel bottom-left, Conexo bottom-right.
   Rigel sits above Conexo so its "USA" caption stays readable on the pile. */
.pile .mini--dtailor { left: -21%; top: -85px; transform: rotate(-8deg); z-index: 1; }
.pile .mini--alegria { left: 53.5%; top: -74px; transform: rotate(7deg); z-index: 1; }
/* keep the two top captions readable despite the tighter overlap */
.pile .mini--dtailor .mini-cap { padding-left: 8px; }
.pile .mini--dtailor .mini-name { font-size: 16.5px; }
.pile .mini--alegria .mini-cap { padding-right: 7px; }
.pile .mini--alegria .mini-country { letter-spacing: 0.12em; font-size: 10.5px; }
.pile .mini--rigel   { left: -16%; top: 190px;  transform: rotate(-4deg); z-index: 4; }
.pile .mini--conexo  { left: 44%;  top: 218px;  transform: rotate(5deg);  z-index: 3; }
/* mid widths: scale the pile down so it doesn't crowd the copy */
@media (max-width: 1050px) {
  .pile .mini { width: 250px; }
  .pile .mini-name { font-size: 17px; }
  .pile .mini--dtailor { top: -70px; }
  .pile .mini--alegria { top: -58px; }
  .pile .mini--rigel   { top: 215px; }
  .pile .mini--conexo  { top: 245px; }
}
/* hide the pile when the hero stacks to a single column */
@media (max-width: 760px) {
  .pile { display: none; }
}

/* ---------- Postcard ---------- */
.postcard { position: relative; z-index: 10; perspective: 1400px; transform: rotate(-2deg); cursor: pointer; }
.postcard__inner { position: relative; transform-style: preserve-3d; transition: transform 1s cubic-bezier(0.4, 0.1, 0.2, 1); }
.postcard.is-flipped .postcard__inner { transform: rotateY(180deg); }

.postcard__back, .postcard__front {
  background: #FFFDF8; border: 1px solid rgba(35,34,29,0.1); border-radius: 10px;
  box-shadow: 0 22px 54px rgba(110,43,78,0.18);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.postcard__back {
  transform: rotateY(180deg); padding: 26px 26px 22px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px;
}
.postcard__front { position: absolute; inset: 0; padding: 12px; display: flex; }
.postcard__msg { display: flex; flex-direction: column; gap: 12px; }
.pc-logo { width: 78px; height: auto; opacity: 0; }
.postcard__hand { margin: 0; font-family: 'Caveat', cursive; font-size: 23px; line-height: 1.35; color: #3A3230; }
.postcard__hand span { display: block; white-space: nowrap; }
.postcard__sig { margin: 0; font-family: 'Caveat', cursive; font-size: 21px; color: var(--plum); }
.postcard__addr { border-left: 1.5px solid rgba(35,34,29,0.15); padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.postcard__stampwrap { align-self: flex-end; position: relative; }
.postcard__stamp {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 54px;
  background: #D9532B; color: #FFF6E9; font-family: 'Newsreader', serif; font-size: 25px;
  border: 4px solid #FFFDF8; outline: 2px dashed rgba(217,83,43,0.5); opacity: 0;
}
.postcard__postmark {
  position: absolute; right: -16px; top: -14px; width: 60px; height: 60px;
  border: 1.5px solid rgba(110,43,78,0.45); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; color: rgba(110,43,78,0.65); letter-spacing: 0.08em; text-align: center; opacity: 0;
}
.postcard__lines { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.postcard__lines span { display: block; height: 6px; border-radius: 999px; background: #EAE0CF; }
.pc-l2 { width: 80%; }
.pc-l3 { width: 60%; }
.postcard__love { margin: auto 0 0; font-family: 'Caveat', cursive; font-size: 17px; color: var(--faint); opacity: 0; }
.postcard__photo { position: relative; flex: 1; border-radius: 5px; overflow: hidden; }
.postcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.postcard__place { position: absolute; left: 12px; bottom: 10px; font-family: 'Caveat', cursive; font-size: 19px; color: #FFFDF8; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.postcard__flip { position: absolute; right: 12px; bottom: 10px; font-family: 'Caveat', cursive; font-size: 17px; color: rgba(255,253,248,0.9); text-shadow: 0 1px 6px rgba(0,0,0,0.45); }

/* Handwriting replay: keyed on .is-writing (added each time back appears) */
.postcard.is-writing .pc-logo { animation: buildBlock 0.6s ease 1.0s forwards; }
.postcard.is-writing .pc-w1 { animation: writeLine 1.1s ease-out 1.5s backwards; }
.postcard.is-writing .pc-w2 { animation: writeLine 1.1s ease-out 2.4s backwards; }
.postcard.is-writing .pc-w3 { animation: writeLine 1.1s ease-out 3.3s backwards; }
.postcard.is-writing .pc-sig { animation: writeLine 0.8s ease-out 4.3s backwards; }
.postcard.is-writing .pc-l1 { animation: writeLine 0.7s ease-out 3.7s backwards; }
.postcard.is-writing .pc-l2 { animation: writeLine 0.7s ease-out 4.1s backwards; }
.postcard.is-writing .pc-l3 { animation: writeLine 0.7s ease-out 4.5s backwards; }
.postcard.is-writing .pc-stamp { animation: buildBlock 0.5s ease 4.9s forwards; }
.postcard.is-writing .pc-mark { animation: stampIn 0.5s ease 5.5s forwards; }
.postcard.is-writing .pc-love { animation: buildBlock 0.6s ease 6.0s forwards; }

/* ---------- Cards (services) ---------- */
.cards { display: grid; gap: 20px; margin-top: 48px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg); border: 1px solid rgba(35,34,29,0.08); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.card__num { font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; color: var(--accent); }
.card__title { margin: 0; font-family: 'Newsreader', serif; font-weight: 500; font-size: 24px; }
.card__text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Work ---------- */
.work__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.work__sub { margin: 0; font-size: 15px; color: var(--faint); }
.work__track {
  display: flex; gap: 20px; margin-top: 44px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 16px; -webkit-overflow-scrolling: touch;
}
.work__card {
  flex: 0 0 min(400px, 84vw); scroll-snap-align: start; text-decoration: none;
  background: var(--bg); border: 1px solid rgba(35,34,29,0.08); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.work__card:hover { border-color: rgba(110,43,78,0.35); box-shadow: 0 14px 34px rgba(110,43,78,0.12); }
.work__card--static { cursor: default; }
.work__card--static:hover { border-color: rgba(35,34,29,0.08); box-shadow: none; }

/* scroll indicator under the Recent Work carousel (mobile only) */
.work__dots { display: none; }
.work__dot {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 999px;
  background: rgba(35,34,29,0.2); cursor: pointer; transition: width 0.25s ease, background 0.25s ease;
}
.work__dot.is-active { width: 22px; background: var(--plum); }
@media (max-width: 720px) {
  .work__dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
}
.work__img { width: 100%; aspect-ratio: 1200 / 630; background: #EEE8DC; }
.work__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.work__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work__name { margin: 0; font-family: 'Newsreader', serif; font-weight: 500; font-size: 22px; color: var(--ink); }
.work__url { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.work__desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin-top: 48px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step__head { display: flex; align-items: baseline; gap: 10px; }
.step__n { font-family: 'Newsreader', serif; font-weight: 300; font-size: 40px; line-height: 1; color: var(--plum); }
.step__n em { font-style: normal; color: var(--accent); }
.step__title { margin: 0; font-family: 'Newsreader', serif; font-weight: 700; font-size: 21px; color: var(--plum); }
.step__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Packages ---------- */
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 48px; align-items: stretch; }
.pkg {
  cursor: pointer; background: var(--bg); border: 1px solid rgba(35,34,29,0.08);
  border-radius: 16px; padding: 34px 30px; display: flex; flex-direction: column; gap: 16px;
  position: relative; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pkg:hover { border-color: rgba(110,43,78,0.4); box-shadow: 0 10px 28px rgba(110,43,78,0.1); }
.pkg--featured { border: 2px solid var(--plum); box-shadow: 0 12px 32px rgba(110,43,78,0.14); }
.pkg--featured:hover { border-color: var(--plum); box-shadow: 0 16px 40px rgba(110,43,78,0.22); }
.pkg__badge {
  position: absolute; top: -13px; left: 30px; background: var(--accent); color: var(--bg);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.pkg__name { margin: 0; font-family: 'Newsreader', serif; font-weight: 500; font-size: 24px; }
.pkg__price { margin: 0; font-family: 'Newsreader', serif; font-size: 34px; font-weight: 400; }
.pkg__list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pkg__list li { padding-left: 20px; position: relative; }
.pkg__list li::before { content: "·"; position: absolute; left: 0; color: var(--plum); }
.pkg__cta { margin-top: auto; text-align: center; }
.pkgs__note { margin: 28px 0 0; font-size: 14px; color: var(--faint); line-height: 1.6; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; max-width: 420px; justify-self: center; }
.about__copy { display: flex; flex-direction: column; gap: 18px; }
.about__title { margin: 0; font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; display: flex; align-items: baseline; flex-wrap: wrap; }
.about__ciao { margin-right: 0.28em; }
.about__name { display: inline-flex; align-items: baseline; }
.about__m { height: 0.92em; width: auto; display: inline-block; transform: translateY(0.13em); margin-right: -0.06em; }
.about__tag { margin: 0; font-family: 'Newsreader', serif; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--ink); }
.about__p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.about__meplay { display: inline-flex; align-items: baseline; white-space: nowrap; }
.about__meplay img { height: 1em; width: auto; display: inline-block; transform: translateY(0.18em); margin-right: -0.04em; }
.about__meplay em { font-style: italic; font-family: 'Newsreader', serif; font-size: 1.15em; color: var(--plum); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip { border: 1px solid rgba(35,34,29,0.14); border-radius: 999px; padding: 7px 16px; font-size: 13.5px; color: var(--muted); }
.chip--accent { border: 1.5px solid rgba(110,43,78,0.2); font-weight: 600; color: var(--plum); }

/* ---------- Hobbies ---------- */
.hobbies {
  background: #F5EBDD; border: 1px solid rgba(35,34,29,0.08); border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hobbies__imgs { position: relative; min-height: 300px; }
.hobbies__img { border-radius: 16px; box-shadow: 0 12px 30px rgba(110,43,78,0.14); object-fit: cover; }
.hobbies__img--a { width: 58%; aspect-ratio: 3 / 4; display: block; transform: rotate(-3deg); }
.hobbies__img--b { width: 54%; aspect-ratio: 3 / 4; display: block; position: absolute; right: 0; top: 12%; transform: rotate(2.5deg); }
.hobbies__copy { display: flex; flex-direction: column; gap: 16px; }
.hobbies__title { margin: 0; font-family: 'Newsreader', serif; font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; color: var(--plum); }
.hobbies__tag { margin: 0; font-family: 'Newsreader', serif; font-style: italic; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--accent); }
.hobbies__p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__copy { display: flex; flex-direction: column; gap: 18px; }
.contact__sub { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.contact__prefer { margin: 0; font-size: 16px; color: var(--muted); }
.note {
  position: relative; margin-top: 44px; max-width: 380px; background: #FFFDF8;
  border: 1px solid rgba(35,34,29,0.1); border-radius: 10px; padding: 24px 26px 22px;
  transform: rotate(-1.5deg); box-shadow: 0 14px 34px rgba(110,43,78,0.12);
}
.note__title { margin: 0 0 14px; font-family: 'Caveat', cursive; font-size: 22px; color: var(--plum); }
.note__list { display: flex; flex-direction: column; gap: 10px; font-family: 'Caveat', cursive; font-size: 20px; line-height: 1.3; color: #3A3230; }
.note__item { display: flex; gap: 10px; align-items: baseline; }
.note__n { color: var(--accent); font-weight: 700; }
.note__postmark {
  position: absolute; right: 14px; top: -18px; width: 58px; height: 58px;
  border: 1.5px solid rgba(110,43,78,0.45); border-radius: 50%; background: #FFFDF8;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; color: rgba(110,43,78,0.65); letter-spacing: 0.08em; text-align: center; opacity: 0;
}
.note.is-writing .note__title { animation: writeLine 1s ease-out 0.2s backwards; }
.note.is-writing .note__item:nth-child(1) { animation: writeLine 1s ease-out 1.0s backwards; }
.note.is-writing .note__item:nth-child(2) { animation: writeLine 1s ease-out 1.9s backwards; }
.note.is-writing .note__item:nth-child(3) { animation: writeLine 1s ease-out 2.8s backwards; }
.note.is-writing .note__postmark { animation: stampIn 0.5s ease 3.9s forwards; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.field__label { display: block; }
.field__opt { font-weight: 400; color: var(--faint); }
.field input, .field textarea, .field select {
  font-family: 'Instrument Sans', sans-serif; font-size: 16px; padding: 13px 16px;
  border: 1px solid rgba(35,34,29,0.18); border-radius: 10px; background: #FFFFFF;
  color: var(--ink); outline: none; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--plum); }
.field__phone { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.field__phone select { padding: 13px 10px; cursor: pointer; width: auto; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__error { margin: 0; font-size: 14.5px; line-height: 1.5; color: #B23A2B; }
.form__gdpr { margin: -6px 0 0; font-size: 13px; line-height: 1.5; color: var(--faint); }
.form__gdpr a { color: inherit; text-decoration: underline; }
.form__gdpr a:hover { color: var(--plum); }
.form__error a { color: inherit; }
.btn[disabled] { opacity: 0.6; cursor: default; pointer-events: none; }

.sent { background: #F5EBDD; border: 1px solid rgba(35,34,29,0.08); border-radius: 16px; padding: 40px 32px; display: flex; flex-direction: column; gap: 10px; }
.sent__title { margin: 0; font-family: 'Newsreader', serif; font-size: 26px; }
.sent__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.sent__again {
  align-self: flex-start; margin-top: 8px; padding: 0 0 2px; background: none; border: none;
  font-family: 'Instrument Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--accent); border-bottom: 1px solid currentColor;
}
.sent__again:hover { color: var(--plum); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(35,34,29,0.55);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal__box {
  background: var(--bg); border-radius: 20px; max-width: 860px; width: 100%;
  max-height: 88vh; overflow: auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: rgba(35,34,29,0.08); color: var(--ink);
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.modal__close:hover { background: rgba(35,34,29,0.16); }
.modal__preview { background: #F5EBDD; padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.browser { border-radius: 10px; overflow: hidden; box-shadow: 0 14px 36px rgba(110,43,78,0.18); background: #FFFFFF; }
.browser__bar { background: #EAE5DB; padding: 7px 10px; display: flex; align-items: center; gap: 5px; }
.browser__dot { width: 8px; height: 8px; border-radius: 50%; }
.browser__url { margin-left: 8px; flex: 1; background: #FFFFFF; border-radius: 4px; font-size: 9px; color: var(--faint); padding: 2px 8px; }
.browser__tabs { display: flex; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #EEE8DC; font-size: 9px; color: var(--faint); }
.browser__tab--active { color: var(--plum); font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.browser__langs { margin-left: auto; color: var(--plum); font-weight: 600; }
.browser__blocks { display: flex; flex-direction: column; }
.browser__block { display: flex; flex-direction: column; align-items: center; gap: 5px; border-bottom: 1px solid #F2EDE3; }
.browser__block-title { font-family: 'Newsreader', serif; line-height: 1.2; }
.browser__block-hint { font-size: 8.5px; text-align: center; }
.browser__chips { display: flex; gap: 5px; margin-top: 3px; }
.modal__summary { padding: 44px 36px; display: flex; flex-direction: column; gap: 14px; }
.modal__name { margin: 0; font-family: 'Newsreader', serif; font-weight: 500; font-size: 32px; }
.modal__price { margin: 0; font-family: 'Newsreader', serif; font-size: 26px; color: var(--accent); }
.modal__blurb { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.modal__list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.modal__list li { padding-left: 20px; position: relative; }
.modal__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.modal__cta { margin-top: 14px; text-align: center; padding: 14px 24px; font-size: 15px; }
.modal__note { margin: 0; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(35,34,29,0.08); }
.footer__inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__brand { font-family: 'Newsreader', serif; font-size: 18px; font-weight: 500; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 14px; color: var(--muted); }
.footer__links a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
[data-reveal].is-hidden { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }

/* ---------- Keyframes ---------- */
@keyframes buildBlock { 0% { opacity: 0; transform: translateY(12px) scale(0.98); } 100% { opacity: 1; transform: none; } }
@keyframes blinkCaret { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes writeLine { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stampIn { 0% { opacity: 0; transform: scale(1.9) rotate(-10deg); } 60% { opacity: 1; transform: scale(0.94) rotate(1deg); } 100% { opacity: 1; transform: scale(1) rotate(0deg); } }

/* ---------- Mobile: card sections scroll horizontally ---------- */
@media (max-width: 720px) {
  .cards--3,
  .steps,
  .pkgs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* left edge stays aligned with the section heading (24px);
       right edge bleeds to the viewport so the next card peeks in */
    margin-right: -24px;
    padding-right: 24px;
    padding-bottom: 16px;
    gap: 16px;
    scroll-padding-left: 0;
  }
  .cards--3 > .card,
  .pkgs > .pkg {
    flex: 0 0 min(300px, 80%);
    scroll-snap-align: start;
  }
  .steps > .step {
    flex: 0 0 min(240px, 66%);
    scroll-snap-align: start;
  }
  /* room above the cards so the "Most popular" badge & card shadows aren't clipped */
  .pkgs {
    padding-top: 16px;
    align-items: stretch;
  }
}

/* the About chips are duplicated: desktop copy lives in the text column,
   the mobile copy sits under the photo. Only one shows at a time. */
.about__chips--mobile { display: none; }

/* ---------- Mobile: photos go at the end of About & Hobbies ---------- */
@media (max-width: 600px) {
  .about__copy { order: 1; }
  .about__photo { order: 2; }
  .about__chips--desktop { display: none; }
  .about__chips--mobile { display: flex; order: 3; }
  .hobbies__copy { order: 1; }
  .hobbies__imgs { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  [data-reveal].is-hidden { opacity: 1; transform: none; }
}
