/* ============================================================
   Erih Design — every letter is hand-stamped into metal.
   The page inherits the craft: debossed type, buttons that
   press down like a letter punch, one interactive bracelet.
   ============================================================ */

:root {
  --linen: #efeae2;        /* page ground */
  --paper: #f7f4ee;        /* raised cards */
  --espresso: #2b241d;     /* primary ink */
  --taupe: #83786a;        /* secondary text */
  --hairline: #ddd5c9;     /* borders */
  --berry: #7d3049;        /* macramê cord accent — used sparingly */
  --steel-hi: #dcdce0;     /* bracelet metal highlight */
  --steel-lo: #aeaeb4;     /* bracelet metal shadow */
  --wa: #25d366;           /* WhatsApp green — FAB only */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;
  --font-punch: "IBM Plex Mono", monospace;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--linen);
  color: var(--espresso);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--espresso); color: var(--linen); }

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

/* ---------- shared type ---------- */

/* debossed: the letterpunch look on linen */
.eyebrow {
  font-family: var(--font-punch);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.eyebrow--light { color: #a99e8d; text-shadow: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin-top: .8rem;
}
.section-title em { font-style: italic; font-weight: 430; }

.section-lede {
  color: var(--taupe);
  max-width: 34rem;
  margin-top: 1rem;
}

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { text-align: center; }
.section-head--center .section-lede { margin-inline: auto; }

/* ---------- buttons: they press down like a punch ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .8rem 1.5rem;
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s, background-color .25s, color .25s, border-color .25s;
}

.btn--ink {
  background: var(--espresso);
  color: var(--linen);
  box-shadow: 0 3px 0 rgba(43, 36, 29, .35), 0 10px 24px -12px rgba(43, 36, 29, .5);
}
.btn--ink:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(43, 36, 29, .35), 0 14px 28px -12px rgba(43, 36, 29, .5); }
.btn--ink:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(43, 36, 29, .35); }

.btn--line {
  border-color: var(--espresso);
  color: var(--espresso);
  background: transparent;
}
.btn--line:hover { background: var(--paper); transform: translateY(-2px); }
.btn--line:active { transform: translateY(1px); }

.btn--bone {
  background: var(--linen);
  color: var(--espresso);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .3);
}
.btn--bone:hover { transform: translateY(-2px); }
.btn--bone:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--xl { padding: 1.2rem 2.4rem; font-size: 1.08rem; }

.ico-wa { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .8rem var(--pad);
  background: color-mix(in srgb, var(--linen) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: transform .45s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-right: auto;
}
.nav__brand-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 560;
  font-size: 1.7rem;
  letter-spacing: .01em;
}
.nav__brand-sub {
  font-family: var(--font-punch);
  font-size: .56rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: .3rem;
}

.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--taupe);
  transition: color .25s;
}
.nav__links a:hover { color: var(--espresso); }

.nav__burger {
  display: none;
  background: none;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--espresso);
  transition: transform .35s var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(.28rem) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-.28rem) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--linen);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.4rem;
  padding: var(--pad);
}
.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu .btn { margin-top: 1.4rem; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(7rem, 14vh, 10rem) var(--pad) clamp(3rem, 6vw, 5rem);
  max-width: 82rem;
  margin: 0 auto;
}

.hero__eyebrow { animation: fadeUp .8s var(--ease-out) both .1s; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: clamp(2.8rem, 6.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 1rem 0 1.4rem;
}
.hero__title em { font-style: italic; font-weight: 440; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line span { display: inline-block; transform: translateY(110%); animation: riseIn .9s var(--ease-out) forwards; }
.hero__line:nth-child(2) span { animation-delay: .1s; }

.hero__sub {
  color: var(--taupe);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 30rem;
  animation: fadeUp .8s var(--ease-out) both .4s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
  animation: fadeUp .8s var(--ease-out) both .55s;
}

.hero__phone {
  margin-top: 1.3rem;
  font-size: .85rem;
  color: var(--taupe);
  animation: fadeUp .8s var(--ease-out) both .68s;
}
.hero__phone a { color: var(--espresso); text-underline-offset: 4px; text-decoration-color: var(--hairline); }

.hero__figure {
  position: relative;
  animation: fadeIn 1.4s ease both .3s;
}
.hero__figure img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 24px 60px -24px rgba(43, 36, 29, .45);
}
.hero__figure figcaption {
  margin-top: .8rem;
  font-family: var(--font-punch);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--taupe);
  text-align: right;
}

/* ---------- ribbon of real engravings ---------- */

.ribbon {
  border-block: 1px solid var(--hairline);
  background: var(--paper);
  padding: 1rem var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
}
.ribbon::-webkit-scrollbar { display: none; }
.ribbon__track {
  font-family: var(--font-punch);
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
  white-space: nowrap;
  text-align: center;
}

/* ---------- sections ---------- */

.pieces, .process, .engrave, .cta-final {
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
  max-width: 82rem;
  margin: 0 auto;
}

/* ---------- pieces ---------- */

.pieces__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.piece {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.piece:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -20px rgba(43, 36, 29, .35);
}

.piece__figure {
  aspect-ratio: 1;
  overflow: hidden;
}
.piece__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.piece:hover .piece__figure img { transform: scale(1.05); }

.piece__body {
  padding: 1.2rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.piece__body h3 {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 1.25rem;
}
.piece__body p { color: var(--taupe); font-size: .9rem; flex: 1; }

.piece__link {
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  color: var(--berry);
  margin-top: .4rem;
  transition: letter-spacing .3s var(--ease-out);
}
.piece__link:hover { letter-spacing: .02em; text-decoration: underline; text-underline-offset: 4px; }

/* pets social proof — a framed-photos card, like Erih's own feed collages */
.pets {
  margin-top: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
}

.pets__text { max-width: 26rem; }
.pets__text h3 {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  margin-top: .7rem;
}
.pets__text p:not(.eyebrow) { color: var(--taupe); margin-top: .6rem; }
.pets__text .piece__link { display: inline-block; margin-top: 1.1rem; }

.pets__photos {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: .5rem 1rem;
}

.pets__card {
  background: var(--linen);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: .65rem .65rem .55rem;
  box-shadow: 0 14px 30px -14px rgba(43, 36, 29, .4);
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.pets__card:first-child { transform: rotate(-2.5deg); }
.pets__card:last-child { transform: rotate(2deg) translateY(.5rem); }
.pets__card:hover {
  transform: rotate(0) translateY(-.25rem) scale(1.03);
  box-shadow: 0 22px 40px -16px rgba(43, 36, 29, .45);
  z-index: 1;
  position: relative;
}

.pets__card img {
  width: clamp(9.5rem, 15vw, 12rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.pets__card figcaption {
  margin-top: .55rem;
  text-align: center;
  font-family: var(--font-punch);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--taupe);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

/* ---------- engrave tool (signature) ---------- */

.engrave { text-align: center; }

.engrave__tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

/* the bracelet: a curved satin-steel bar */
.bracelet {
  width: min(34rem, 92%);
  padding: 1.05rem 2rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--steel-hi) 0%, #c9c9ce 42%, var(--steel-lo) 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .85),
    inset 0 -3px 5px rgba(0, 0, 0, .22),
    0 18px 36px -16px rgba(43, 36, 29, .5);
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bracelet__text {
  font-family: var(--font-punch);
  font-weight: 500;
  font-size: clamp(.95rem, 2.6vw, 1.35rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #63636a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .75), 0 -1px 1px rgba(0, 0, 0, .35);
  white-space: nowrap;
}
.bracelet__text .punch {
  display: inline-block;
  animation: punch .32s var(--ease-out) both;
}
.bracelet__text .punch--space { width: .6em; }

.engrave__controls {
  width: min(26rem, 100%);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: left;
}
.engrave__label {
  font-family: var(--font-punch);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--taupe);
}
#phraseInput {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--espresso);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  transition: border-color .25s, box-shadow .25s;
}
#phraseInput:focus {
  outline: none;
  border-color: var(--espresso);
  box-shadow: 0 0 0 3px rgba(43, 36, 29, .12);
}
.engrave__hint { font-size: .78rem; color: var(--taupe); }

.engrave__note { font-size: .82rem; color: var(--taupe); }

/* ---------- process ---------- */

.process { border-top: 1px solid var(--hairline); }

.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.step {
  border-top: 2px solid var(--hairline);
  padding-top: 1.3rem;
  transition: border-color .4s;
}
.step:hover { border-top-color: var(--espresso); }

.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .8), inset 0 -2px 3px rgba(0, 0, 0, .2);
  font-family: var(--font-punch);
  font-weight: 500;
  color: #55555c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  margin-bottom: .9rem;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 1.3rem;
  margin-bottom: .4rem;
}
.step p { color: var(--taupe); font-size: .95rem; }

/* ---------- about (dark band) ---------- */

.about {
  background: var(--espresso);
  color: var(--linen);
}
.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}
.about__text { max-width: 36rem; justify-self: end; }
.about__copy { display: grid; gap: 1rem; margin-top: 1.4rem; color: #cfc7ba; }
.about .btn { margin-top: 2rem; }

.about__figure img {
  width: 100%;
  max-width: 30rem;
  border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}

/* ---------- cta final ---------- */

.cta-final {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-final__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin-top: 1rem;
}
.cta-final__title em { font-style: italic; font-weight: 430; }

.cta-final__sub { color: var(--taupe); margin-top: 1.3rem; }

.cta-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.3rem;
}

.cta-final__phone {
  font-size: 1rem;
  color: var(--taupe);
  text-underline-offset: 5px;
  text-decoration-color: var(--hairline);
  transition: color .25s;
}
.cta-final__phone:hover { color: var(--espresso); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  padding: 2.6rem var(--pad) calc(2.6rem + 4.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 3rem;
}

.footer__brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.footer__mark { font-family: var(--font-display); font-style: italic; font-weight: 560; font-size: 1.7rem; }
.footer__sub {
  font-family: var(--font-punch);
  font-size: .56rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: .35rem;
}

.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--taupe);
  text-decoration: none;
  transition: color .25s;
}
.footer__links a:hover { color: var(--espresso); }

.footer__note { width: 100%; font-size: .78rem; color: var(--taupe); }

/* ---------- FAB ---------- */

.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--wa);
  color: #06130a;
  border-radius: 999px;
  padding: .85rem;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .55);
  transition: transform .3s var(--ease-out);
}
.fab svg { width: 1.6rem; height: 1.6rem; fill: currentColor; flex: none; }
.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .5s var(--ease-out), padding .4s;
}
.fab:hover, .fab.is-teasing { transform: translateY(-3px); }
.fab:hover .fab__label, .fab.is-teasing .fab__label { max-width: 11rem; padding-right: .5rem; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */

@keyframes riseIn { to { transform: translateY(0); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes punch {
  0% { opacity: 0; transform: scale(1.7) rotate(var(--rot, 0deg)); }
  55% { opacity: 1; transform: scale(.92) rotate(var(--rot, 0deg)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--rot, 0deg)); }
}

/* ---------- responsive ---------- */

@media (max-width: 64rem) {
  .pieces__grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__text { justify-self: start; }
  .about__figure { max-width: 26rem; }
}

@media (max-width: 60rem) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { grid-template-columns: 1fr; padding-top: 6.5rem; }
  .hero__figure { order: -1; max-width: 24rem; }

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

@media (max-width: 52rem) {
  .pets { grid-template-columns: 1fr; }
  .pets__photos { justify-content: center; }
}

@media (max-width: 34rem) {
  .pieces__grid { grid-template-columns: 1fr; }
  .btn--lg, .btn--xl { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .bracelet__text { letter-spacing: .18em; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__line span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
