/* Veya bio — design tokens taken directly from sairahgonzalez.oplex.ai */
:root {
  --bg: #f9f9f9;
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --line: rgba(26, 26, 26, .1);
  --tile: #e4e2de;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", var(--font);
  --ease: cubic-bezier(.22, 1, .36, 1);   /* same soft ease-out as the portfolio nav */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Page column ---------- */
.page {
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(48px + env(safe-area-inset-bottom));
}

/* ---------- Section 1: Profile ---------- */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; }

.wordmark {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em;
}
.wordmark__mark { width: 17px; height: 17px; flex: none; transform: translateY(-1px); }

.profile__avatar {
  width: 96px; height: 96px; margin-top: 44px; border-radius: 50%;
  background: var(--tile) center / cover no-repeat;
  /* thin editorial ring with a small gap, in the portfolio's 10% line colour */
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line);
}

.profile__name {
  margin: 20px 0 0;
  font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em;
  text-transform: uppercase; text-wrap: balance;
}
.profile__role {
  margin: 8px 0 0;
  font-size: 11px; font-weight: 500; line-height: 16px; letter-spacing: .14em; text-transform: uppercase;
}
.profile__role:empty { display: none; }
.profile__intro {
  margin: 16px 0 0; max-width: 300px;
  font-size: 17px; font-weight: 300; line-height: 1.3; color: var(--muted); text-wrap: balance;
}

/* ---------- Social / email icons ---------- */
.socials { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.socials > li > a, .socials > li > span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); transition: opacity .2s, background-color .2s;
}
.socials > li > a svg, .socials > li > span svg { width: 20px; height: 20px; }
.socials a:active { background-color: rgba(26, 26, 26, .05); }
@media (hover: hover) { .socials a:hover { opacity: .6; } }
.socials a:focus-visible { outline: 1px solid rgba(26, 26, 26, .25); outline-offset: 0; }
.is-placeholder { opacity: .25; cursor: not-allowed; }
.socials { align-items: center; }

/* Email written out, tap to copy — matches the portfolio hero link */
.email { margin-top: -2px; }
.email:empty { display: none; }
.copy {
  position: relative; display: inline-grid; align-items: center; min-height: 44px; padding: 0 4px;
  border: 0; background: none; cursor: copy; color: var(--ink);
  font-family: var(--font-ui); font-size: 15px; letter-spacing: -.02em;
  transition: opacity .2s;
}
/* The normal row ("address + copy icon") and the "Copied! ✓" row sit in the same spot.
   The button keeps the email's width, so nothing on the page shifts, and each row is
   centred across that full width, so "Copied! ✓" lands exactly in the middle. */
.copy__idle, .copy__done {
  grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .25s ease;
}
.copy__done { opacity: 0; }
.copy.is-copied .copy__idle { opacity: 0; }
.copy.is-copied .copy__done { opacity: 1; }
/* Optical centring: the word "Copied!" sits dead centre and the light tick hangs just
   to its right, because the eye centres on the word, not on word + tick */
.copy__word { position: relative; }
.copy__word .copy__icon { position: absolute; left: calc(100% + 6px); top: 50%; translate: 0 -50%; }
.copy.is-copied .copy__done .copy__icon { animation: tick-in .3s var(--ease); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.copy__icon { display: grid; flex: none; width: 14px; height: 14px; }
.copy__icon svg { width: 14px; height: 14px; }
@media (hover: hover) { .copy:hover { opacity: .6; } }
.copy:focus-visible { outline: 1px solid rgba(26, 26, 26, .25); border-radius: 8px; }

/* ---------- Section 2: Link cards ---------- */
.links { margin-top: 36px; }
.links__list { display: grid; gap: 10px; }

.card {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 18px; align-items: center; gap: 14px;
  width: 100%; padding: 10px 16px 10px 10px; border-radius: 16px;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  /* same frosted glass as the portfolio nav */
  background: linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.45) 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 -10px 20px -14px rgba(255,255,255,.7), 0 1px 2px rgba(26,26,26,.03);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease), scale .2s var(--ease), background-color .3s;
}
.card__photo {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--tile);
}
.card__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: scale .8s var(--ease);
}
/* Icon instead of a photo: soft tile with a thin line icon */
.card__photo--icon {
  display: grid; place-items: center; color: var(--ink);
  background: var(--tile); box-shadow: inset 0 0 0 1px var(--line);
}
.card__photo--icon svg { width: 52%; height: 52%; transition: scale .6s var(--ease); }
.card--feature .card__photo--icon {
  color: var(--bg); background: rgba(249,249,249,.07); box-shadow: inset 0 0 0 1px rgba(249,249,249,.14);
}
@media (hover: hover) { .card:hover .card__photo--icon svg { scale: 1.08; } }
.card__body { min-width: 0; container-type: inline-size; }
.card__num {
  display: block; font-family: var(--font-ui); font-size: 11px; line-height: 14px;
  letter-spacing: -.02em; color: var(--muted);
}
/* Titles always stay on one line: the text shrinks slightly on narrow phones
   so the longest title ("Content Creation Portfolio") still fits. */
.card__title {
  display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: min(17px, 8.1cqi); font-weight: 500; line-height: 1.25; letter-spacing: -.015em;
}
.card__detail { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 300; line-height: 1.3; color: var(--muted); }
.card__icon { width: 18px; height: 18px; justify-self: end; transition: translate .45s var(--ease), rotate .45s var(--ease); }
/* Placeholder cards: small tag beside the number, faded arrow, not clickable */
.card__soon {
  margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: rgba(26,26,26,.05);
  font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase;
}
.card.is-placeholder { cursor: default; opacity: 1; }
.card.is-placeholder .card__icon { opacity: .25; }

/* "Work With Me": inverted, like the portfolio's black Send button */
.card--feature {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  box-shadow: 0 1px 2px rgba(26,26,26,.06);
}
.card--feature .card__num, .card--feature .card__detail { color: rgba(249,249,249,.6); }
.card--feature[aria-expanded="true"] .card__icon { rotate: 45deg; }

/* Microinteractions */
@media (hover: hover) {
  a.card:hover, button.card:hover {
    translate: 0 -2px;
    box-shadow: inset 0 -10px 20px -14px rgba(255,255,255,.7), 0 10px 24px -12px rgba(26,26,26,.18);
  }
  .card:hover .card__photo img { scale: 1.06; }
  a.card:hover .card__icon { translate: 2px -2px; }
}
a.card:active, button.card:active { scale: .985; }

/* Narrower phones: slightly smaller photo and tighter padding so titles keep their size */
@media (max-width: 399px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .card { grid-template-columns: 56px minmax(0, 1fr) 16px; gap: 12px; padding: 8px 12px 8px 8px; }
  .card__photo { width: 56px; height: 56px; }
  .card__icon { width: 16px; height: 16px; }
  .card__detail { font-size: min(13.5px, 7cqi); }
}
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (min-width: 768px) {
  .links { margin-top: 44px; }
  .links__list { gap: 12px; }
  .card { grid-template-columns: 76px minmax(0, 1fr) 20px; gap: 20px; padding: 12px 22px 12px 12px; }
  .card__photo { width: 76px; height: 76px; border-radius: 12px; }
  .card__title { font-size: min(18px, 8.1cqi); }
}

/* ---------- Section 3: Enquiry form ---------- */
/* Opens smoothly using the same height easing as the portfolio's accordions */
.enquire {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1);
}
.enquire.is-open { grid-template-rows: 1fr; }
.enquire__clip { overflow: hidden; min-height: 0; }
.form {
  display: grid; gap: 10px; margin-top: 10px; padding: 18px 14px 14px;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.45) 100%);
  opacity: 0; translate: 0 -6px;
  transition: opacity .35s ease, translate .5s var(--ease);
}
.enquire.is-open .form { opacity: 1; translate: 0 0; transition-delay: .08s; }

.form__group { border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
.form__label { padding: 0 2px; margin-bottom: 10px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* Service choices: tappable pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 12px; background: #efefef; font-size: 14px; line-height: 1;
  transition: background-color .2s, color .2s, scale .15s var(--ease);
}
.chip span::before {
  content: ""; display: none; width: 5px; height: 10px; margin-right: 2px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px;
}
.chip input:checked + span { background: var(--ink); color: var(--bg); }
.chip input:checked + span::before { display: block; animation: tick-in .3s var(--ease); }
@keyframes tick-in { from { opacity: 0; scale: .4; } }
.chip input:active + span { scale: .97; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .chip input:not(:checked):hover + span { background: #e7e7e7; } }

/* Fields: same grey boxes as the portfolio contact form */
.field {
  display: block; padding: 10px 12px; border-radius: 12px; background: #efefef;
  transition: box-shadow .2s; cursor: text;
}
.field:focus-within { box-shadow: inset 0 0 0 1px rgba(26,26,26,.25); }
.field.is-invalid { box-shadow: inset 0 0 0 1px rgba(160, 60, 50, .55); }
.field__label { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.field__label em { font-style: normal; opacity: .7; }
.field__input {
  display: block; width: 100%; margin: 2px 0 0; padding: 0; border: 0; outline: 0; background: none;
  font-family: var(--font-ui); font-size: 16px; line-height: 24px; color: var(--ink);   /* 16px stops iPhones zooming in */
}
textarea.field__input { resize: vertical; min-height: 72px; }

.form__status { margin: 2px 2px 0; font-size: 14px; font-weight: 300; line-height: 1.35; color: var(--muted); }
.form__status:empty { display: none; }
.form__status.is-error { color: rgb(160, 60, 50); }
.form__send {
  width: 100%; min-height: 48px; margin-top: 4px; padding: 12px 24px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--bg); cursor: pointer;
  font-family: var(--font-ui); font-size: 16px; letter-spacing: -.02em;
  transition: background-color .2s, scale .15s var(--ease);
}
@media (hover: hover) { .form__send:hover { background: #333; } }
.form__send:active { scale: .985; }
.form__send:disabled { opacity: .6; cursor: progress; }
.form__send:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Footer ---------- */
.foot { margin-top: 40px; text-align: center; font-family: var(--font-ui); font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .enquire, .form, .chip span { transition: none; }
  .chip input:checked + span::before { animation: none; }
}

/* ---------- Entrance: soft fade-up, one after another ---------- */
.reveal { opacity: 0; translate: 0 10px; }
.is-ready .reveal {
  opacity: 1; translate: 0 0;
  transition: opacity .7s var(--ease), translate .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .is-ready .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
  .page { padding-top: 64px; }
  .profile__avatar { width: 104px; height: 104px; margin-top: 52px; }
  .profile__name { font-size: 40px; }
}
