@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/outfit.woff2') format('woff2-variations');
}

:root {
  --bg:          #FAF3E1;
  --accent-2:    #F5E7C6;
  --text:        #222222;
  --accent:      #FA8112;
  --card-bg:     #ffffff;
  --shadow:      0 18px 50px -28px rgba(34, 34, 34, 0.30);
  --radius-card: 20px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: center;
}

/* Avatar */
.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 4px var(--card-bg),
    0 0 0 1px var(--accent-2);
  overflow: hidden;
}
.avatar svg {
  width: 78%;
  height: 78%;
  fill: var(--text);
  opacity: 0.55;
}

/* Headings & text */
.name {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.005em;
  margin: 0 0 6px;
  color: var(--text);
}
.tagline {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
  margin: 0;
}
.exp-heading {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 28px 0 32px;
  color: var(--text);
}

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.btn--primary:hover {
  background: #d96a05;
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: #ffffff;
}

.contact { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Phone display */
.phone {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.contact__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.copy-feedback {
  font-size: 0.8rem;
  color: var(--accent);
  min-height: 1.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.copy-feedback.is-visible { opacity: 1; }

/* Animated reveal of phone + actions (replaces the old [hidden] toggling) */
.reveal {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 0.4s ease;
}
.reveal.is-open {
  grid-template-rows: 1fr;
}
.reveal__inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}
.reveal.is-open .reveal__inner {
  opacity: 1;
  transform: translateY(0);
}

/* Collapse the reveal button in parallel with the reveal expansion,
   so the card grows smoothly without a hard pop. */
#reveal-btn {
  max-height: 80px;
  opacity: 1;
  transform: scale(1);
  transition: max-height 0.4s ease, opacity 0.25s ease, transform 0.25s ease,
              margin 0.4s ease, padding 0.4s ease, border-width 0.4s ease;
}
.contact.is-revealed #reveal-btn {
  max-height: 0;
  opacity: 0;
  transform: scale(0.96);
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  pointer-events: none;
}

/* Phone image fallback (shown via <noscript>) */
.phone-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 480px) {
  .card { padding: 36px 22px 32px; }
  .name { font-size: 1.7rem; }
  .exp-heading { font-size: 1.05rem; }
  .btn { width: 100%; }
  .contact__actions .btn { flex: 1 1 calc(50% - 6px); }
  .avatar { width: 116px; height: 116px; }
}