/* ==========================================================================
   BEATRIZ SCHRAMM — compact editorial one-page
   HERO → SELECTED WORK → INSTAGRAM IMPACT → CONTACT
   ========================================================================== */

:root {
  --white: #FCFBF8;
  --ivory: #F4EFE7;
  --line:  #E2DACE;
  --ink:   #161412;
  --soft:  #6A625B;
  --mute:  #9C9086;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --edge: clamp(16px, 4vw, 48px);
  --gap:  clamp(10px, 1.4vw, 18px);
  --r: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--edge); }

.caps { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }

/* gentle entrance */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { text-align: center; padding-top: clamp(28px, 4vw, 48px); }
.hero__name { margin: 0; font-weight: 400; font-size: clamp(30px, 4.2vw, 56px); line-height: 1; letter-spacing: -.005em; animation: up 1.2s var(--ease) both; }
.hero__pos { margin: 10px 0 clamp(18px, 2.2vw, 28px); color: var(--soft); text-transform: uppercase; letter-spacing: .14em; font-size: clamp(10.5px, .95vw, 13px); animation: up 1.2s var(--ease) both .1s; }
.hero__photo { margin: 0 auto; width: 100%; max-width: 1080px; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; background: var(--ivory); }
.hero__photo img { object-position: 50% 22%; filter: grayscale(1); animation: settle 2.4s var(--ease) both; }
.hero__tag { margin: 18px 0 0; color: var(--soft); font-size: clamp(14px, 1.2vw, 17px); animation: up 1.2s var(--ease) both .3s; }
.hero__intro { margin: 16px auto 0; max-width: 34em; color: var(--soft); font-size: clamp(13px, 1.05vw, 15px); line-height: 1.6; animation: up 1.2s var(--ease) both .4s; }
.hero__intro:empty { display: none; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }

/* ---------- WHAT I BRING ---------- */
.bring { text-align: center; margin-top: clamp(28px, 3.4vw, 44px); }
.bring .h2 { margin-bottom: 14px; }
.bring__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0; font-size: clamp(13px, 1.1vw, 15px); color: var(--soft); }
.bring__list li { padding: 0 16px; }
.bring__list li + li { border-left: 1px solid var(--line); }

/* ---------- SELECTED WORK ---------- */
.work { border-top: 1px solid var(--line); margin-top: clamp(28px, 3.4vw, 44px); padding-top: clamp(28px, 3.4vw, 44px); }
.h2 { margin: 0 0 clamp(20px, 2.4vw, 30px); text-align: center; font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: .06em; text-transform: uppercase; }
.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.row + .row { margin-top: var(--gap); }
.row:empty { display: none; }

.tile { margin: 0; position: relative; }
.tile__media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ivory); aspect-ratio: 4 / 5; }
.row--video { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.row--video .tile__media { aspect-ratio: 9 / 16; cursor: pointer; }
.tile__media img, .tile__media video { transition: transform 1.6s var(--ease); }
.tile:hover .tile__media img, .tile:hover .tile__media video { transform: scale(1.025); }
.tile__cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 60px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; padding: 6px 11px; border-radius: 999px; background: rgba(252, 251, 248, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 10.5px; letter-spacing: .08em; color: var(--ink); }
.sound { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(252, 251, 248, .9); display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sound svg { width: 16px; height: 16px; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }

/* ---------- INSTAGRAM IMPACT ---------- */
.impact { text-align: center; padding: clamp(24px, 3vw, 36px) 0 0; }
.impact__stats { display: flex; justify-content: center; gap: clamp(40px, 7vw, 96px); }
.stat__value { margin: 0; font-weight: 500; font-size: clamp(28px, 2.8vw, 38px); line-height: 1; letter-spacing: -.02em; }
.stat__label { margin: 8px 0 0; font-size: 15px; color: var(--soft); }
.stat__period { margin: 3px 0 0; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.impact__src { margin: 14px 0 0; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* ---------- CONTACT ---------- */
.contact { text-align: center; border-top: 1px solid var(--line); margin-top: clamp(28px, 3.4vw, 44px); padding: clamp(28px, 3.4vw, 44px) 0 clamp(28px, 3.4vw, 44px); }
.contact__line { margin: 0 0 22px; font-weight: 400; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.01em; line-height: 1.1; }
.btn { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-width: 200px; padding: 15px 32px; border-radius: 999px; background: var(--ink); color: var(--white); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 500; transition: background .4s var(--ease), color .4s var(--ease); border: 1px solid var(--ink); }
.btn:hover { background: transparent; color: var(--ink); }
.contact__name { margin: 18px 0 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.contact__links { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; }
.contact__links a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--soft); transition: color .3s; }
.contact__links a:hover { color: var(--ink); }
.contact__links a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.contact__links svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.footer { text-align: center; padding: 0 var(--edge) max(24px, env(safe-area-inset-bottom)); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* ---------- MOBILE: compact, swipeable rows ---------- */
@media (max-width: 720px) {
  :root { --r: 12px; }
  .hero { padding-top: max(22px, env(safe-area-inset-top)); }
  .hero__photo { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin-right: calc(var(--edge) * -1); padding-right: var(--edge); }
  .row::-webkit-scrollbar { display: none; }
  .row .tile { flex: 0 0 62vw; scroll-snap-align: start; }
  .row--photo .tile { flex-basis: 54vw; }
  .impact__stats { gap: 40px; }
  .bring__list li { padding: 0 10px; }
  .bring__list li:nth-child(3) { border-left: 0; }
  .row--video .tile__media { aspect-ratio: 3 / 4; }
  /* all videos visible on mobile, all the same size */
  .row--video { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin-right: 0; padding-right: 0; gap: 10px; }
  .row--video .tile { flex: none; }
  /* odd last video: same size, centred */
  .row--video .tile:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
  .contact__links { flex-direction: column; align-items: center; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
