/* Rafael Vag — look carried over from the old JA Resume site */
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --rv-accent: #fc615d;
  --rv-accent-dark: #fb1812;
  --rv-ink: #222;
  --cassiopeia-color-primary: #000;
  --cassiopeia-color-link: #fc615d;
  --cassiopeia-color-hover: #fb1812;
  --cassiopeia-font-family-body: "Work Sans", sans-serif;
  --cassiopeia-font-family-headings: "Work Sans", sans-serif;
  --cassiopeia-font-weight-headings: 600;
  --body-font-family: "Work Sans", sans-serif;
  --body-color: #333;
  --body-bg: #fdfdfd;
  --link-color: #fc615d;
  --link-hover-color: #fb1812;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: "Work Sans", sans-serif; font-size: 15px; line-height: 1.7; color: #333; background: #fdfdfd; }
a { color: var(--rv-accent); text-decoration: none; }
a:hover { color: var(--rv-accent-dark); }

/* Header: black bar, coral RV square, small uppercase menu */
.container-header { background: #000; background-image: none; box-shadow: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 48px); min-height: 96px; }
.container-header .grid-child { max-width: none; width: auto; padding: 0; margin: 0; }
.container-header .navbar-brand { margin: 0; padding: 0; }
.container-header .navbar-brand a.brand-logo { display: flex; align-items: flex-end; justify-content: flex-end; width: 72px; height: 72px; padding: 0 12px 12px 0; background: var(--rv-accent); color: #fff; font-size: 20px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.container-header .navbar-brand a.brand-logo span { color: #fff; font-size: 20px; }
.container-header .container-nav { padding: 0; margin: 0; flex: 1; justify-content: flex-end; }
.container-header .mod-menu { gap: 4px 28px; justify-content: flex-end; }
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span { color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 8px 0; }
.container-header .mod-menu > li > a::before { content: ""; display: inline-block; width: 16px; height: 1px; margin-right: 8px; background: currentColor; vertical-align: middle; opacity: .7; }
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a { color: var(--rv-accent); }
.container-header .metismenu.mod-menu .mm-collapse { background: #000; border: 0; padding: 8px 16px; }
.container-header .metismenu.mod-menu .mm-collapse a { color: #fff; font-size: 12px; text-transform: uppercase; }
.container-header .metismenu.mod-menu .mm-toggler { color: #fff; }
.container-header .navbar-toggler { color: #fff; border-color: #444; }
.container-header .metismenu > li.active::after,
.container-header .metismenu > li > a:hover::after { display: none; }

/* Hero */
.container-banner { margin: 0; }
.container-banner .mod-custom, .container-banner .banner-overlay { position: static; }
.rv-hero { background: #000 url("../../../../../images/introduction/photographer.jpg") right center / auto 100% no-repeat; color: #fff; min-height: calc(100vh - 96px); display: flex; align-items: center; padding: 48px clamp(16px, 4vw, 48px); }
.rv-hero-text { max-width: 520px; }
.rv-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 55px); font-weight: 700; line-height: 1.1; text-transform: uppercase; margin: 0 0 20px; }
.rv-hero-role { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.rv-hero p { color: #bbb; }
.rv-hero p.rv-hero-role { color: #fff; }
.rv-hero-down { display: inline-block; margin-top: 60px; color: #fff; font-size: 34px; font-weight: 300; line-height: 1; }
@media (max-width: 767px) { .rv-hero { background-position: 70% center; background-size: cover; position: relative; } .rv-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); } .rv-hero-text { position: relative; } }

/* Sections */
.rv-section { padding: 72px 0; border-bottom: 1px solid #eee; }
.rv-section:last-child { border-bottom: 0; }
.rv-eyebrow { font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 36px; }
.rv-eyebrow::before { content: ""; display: inline-block; width: 36px; height: 1px; background: #999; margin-right: 12px; vertical-align: middle; }
.rv-title { position: relative; display: inline-block; z-index: 0; margin: 24px 0 40px 42px; padding: 24px 0; color: var(--rv-ink); font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; text-transform: uppercase; }
.rv-title::before { content: ""; position: absolute; z-index: -1; left: -42px; bottom: 0; width: 96px; height: 96px; border: 4px solid var(--rv-accent); }
.rv-title span { position: relative; background: #fdfdfd; padding: 4px 8px 4px 0; }
.rv-title.rv-center { display: table; margin-left: auto; margin-right: auto; }
.rv-narrow { max-width: 760px; }
.rv-btn, .com-contact__form .btn-primary, .btn-primary { display: inline-block; background: var(--rv-accent); border: 1px solid var(--rv-accent); border-radius: 0; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 14px 28px; }
.rv-btn:hover, .btn-primary:hover { background: var(--rv-accent-dark); border-color: var(--rv-accent-dark); color: #fff; }
.rv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }

/* Timeline */
.rv-timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 12px 0; }
.rv-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #d9d9d9; }
.rv-tl-item { position: relative; width: 50%; padding: 0 36px 44px 0; text-align: right; }
.rv-tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 44px 36px; text-align: left; }
.rv-tl-item::before { content: ""; position: absolute; top: 6px; right: -5px; width: 9px; height: 9px; border-radius: 50%; background: #d9d9d9; }
.rv-tl-item:nth-child(even)::before { right: auto; left: -4px; }
.rv-tl-date { color: var(--rv-accent); font-size: 14px; }
.rv-tl-item h4 { color: var(--rv-accent); font-size: 21px; font-weight: 400; margin: 2px 0 6px; }
.rv-tl-item p { margin: 0; color: #666; }
@media (max-width: 600px) { .rv-timeline::before { left: 4px; } .rv-tl-item, .rv-tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 36px 28px; text-align: left; } .rv-tl-item::before, .rv-tl-item:nth-child(even)::before { left: 0; right: auto; } }

/* Skills */
.rv-bars, .rv-pies { list-style: none; margin: 32px 0 0; padding: 0; }
.rv-bars li { margin-bottom: 26px; }
.rv-bar-label, .rv-pie-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--rv-ink); margin-bottom: 8px; }
.rv-bar { display: block; height: 6px; background: #eee; }
.rv-bar span { display: block; height: 100%; background: var(--rv-accent); }
.rv-pies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; text-align: center; }
.rv-pie { display: grid; place-items: center; width: 120px; height: 120px; margin: 0 auto 12px; border-radius: 50%; background: conic-gradient(var(--rv-accent) calc(var(--v) * 1%), #eee 0); }
.rv-pie span { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: #fdfdfd; font-size: 22px; font-weight: 600; color: var(--rv-ink); }

/* Galleries */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 36px; }
.rv-shot { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.rv-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .4s; }
.rv-shot:hover img { transform: scale(1.05); opacity: .75; }
.rv-lb { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.92); padding: 24px; }
.rv-lb img { max-width: 100%; max-height: 100%; }
.rv-lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; padding: 12px 18px; cursor: pointer; }
.rv-lb .rv-lb-close { top: 8px; right: 12px; }
.rv-lb .rv-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.rv-lb .rv-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Testimonials */
.rv-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.rv-testimonials figure { margin: 0; }
.rv-testimonials blockquote { margin: 0 0 24px; padding: 0; border: 0; font-size: 17px; font-style: normal; color: #333; }
.rv-testimonials figcaption { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; align-items: center; font-size: 14px; color: #666; }
.rv-testimonials figcaption img { grid-row: span 2; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.rv-testimonials figcaption strong { align-self: end; color: var(--rv-accent); font-weight: 500; text-transform: uppercase; font-size: 13px; }

/* Contact */
.rv-contact-dark { background: #222; color: #fff; padding: 48px 40px; }
.rv-contact-dark h2 { color: var(--rv-accent); font-size: 28px; font-weight: 700; text-transform: uppercase; margin: 0 0 28px; }
.rv-contact-dark dt { color: #999; font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.rv-contact-dark dd { margin: 0 0 18px; }
.rv-contact-dark a { color: #fff; }
.rv-contact-msg h2 { color: var(--rv-ink); font-size: 24px; font-weight: 600; text-transform: uppercase; margin: 12px 0 28px; }

/* Inner pages */
.container-component { padding-top: 40px; padding-bottom: 40px; }
.item-page > .page-header h1, .com-content-category-blog h1, .com-contact h1 { font-size: 34px; font-weight: 600; text-transform: uppercase; color: var(--rv-ink); }
.com-content-category-blog .item-content, .blog-item { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid #eee; }
.blog-item .item-image img { max-width: 320px; height: auto; }
blockquote { border-left: 4px solid var(--rv-accent); padding: 4px 0 4px 24px; font-size: 18px; color: #444; }
.form-control { border-radius: 0; }

/* Footer */
.container-footer { background: #fdfdfd; background-image: none; color: #666; border-top: 1px solid #eee; margin-top: 0; }
.container-footer .grid-child { display: block; padding: 32px 16px; text-align: center; font-size: 14px; }
.container-footer a { color: var(--rv-accent); }
.back-to-top-link { background: #333; color: #fff; border: 0; border-radius: 0; }

/* Page gutters aligned with the header */
.site-grid > .container-component, .site-grid > .grid-child { padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.com-content-category-blog .page-header h2 a, .blog-item h2 a { color: var(--rv-ink); text-decoration: none; }
.com-content-category-blog .page-header h2 a:hover { color: var(--rv-accent); }
.com-contact .contact-miscinfo, .com-contact__thumbnail img { max-width: 100%; height: auto; }

/* Home, wide screens: hero stays fixed while the page scrolls up over it; header clear over the hero, black after it */
@media (min-width: 992px) {
  body.itemid-101 .container-header { position: fixed !important; top: 0; left: 0; right: 0; z-index: 1030; background: transparent; transition: background-color .4s, min-height .4s; }
  body.itemid-101.rv-solid .container-header { background: #000; min-height: 72px; }
  body.itemid-101.rv-solid .container-header .navbar-brand a.brand-logo { width: 48px; height: 48px; padding: 0 8px 8px 0; }
  body.itemid-101.rv-solid .container-header .navbar-brand a.brand-logo span { font-size: 15px; }
  .container-header .navbar-brand a.brand-logo, .container-header .navbar-brand a.brand-logo span { transition: all .4s; }
  body.itemid-101 .container-banner { height: 100vh; }
  body.itemid-101 .rv-hero { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; min-height: 0; z-index: 0; }
  body.itemid-101 .rv-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: var(--rv-blur, 0); pointer-events: none; }
  body.itemid-101 .rv-hero-text { position: relative; z-index: 1; }
  body.itemid-101 .site-grid > .container-component,
  body.itemid-101 .container-footer { position: relative; z-index: 1; background: #fdfdfd; box-shadow: 0 0 0 100vmax #fdfdfd; clip-path: inset(0 -100vmax); }
}

/* Reveal on scroll (classes are added by user.js, so the page is complete without it) */
.rv-anim { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.rv-anim.rv-from-left { transform: translateX(-48px); }
.rv-anim.rv-from-right { transform: translateX(48px); }
.rv-anim.rv-in { opacity: 1; transform: none; }
.rv-bars.rv-anim .rv-bar span { width: 0 !important; transition: width 1.2s ease .2s; }
.rv-bars.rv-anim.rv-in .rv-bar span { width: var(--w) !important; }
@media (prefers-reduced-motion: reduce) { .rv-anim { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Journal: card grid */
.com-content-category-blog { max-width: 1200px; margin: 0 auto; }
.com-content-category-blog > .page-header h1, .com-content-category-blog > h1 { position: relative; display: inline-block; margin: 8px 0 48px; padding-bottom: 14px; font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: .02em; }
.com-content-category-blog > .page-header h1::after, .com-content-category-blog > h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--rv-accent); }
.com-content-category-blog .blog-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; margin: 0; }
.com-content-category-blog .blog-items .blog-item { display: flex; flex-direction: column; margin: 0; padding: 0; background: #fff; border: 1px solid #eee; border-bottom: 1px solid #eee; transition: transform .3s, box-shadow .3s; }
.com-content-category-blog .blog-items .blog-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .10); }
.com-content-category-blog .blog-item .item-image { float: none; width: 100%; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.com-content-category-blog .blog-item .item-image a { display: block; height: 100%; }
.com-content-category-blog .blog-item .item-image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s; }
.com-content-category-blog .blog-item:hover .item-image img { transform: scale(1.05); }
.com-content-category-blog .blog-item .item-content { display: flex; flex-direction: column; flex: 1; margin: 0; padding: 26px 26px 28px; border: 0; }
.com-content-category-blog .blog-item .page-header { order: 2; }
.com-content-category-blog .blog-item .page-header h2 { margin: 0 0 12px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.com-content-category-blog .blog-item .article-info { order: 1; margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.com-content-category-blog .blog-item .article-info dd { margin: 0; }
.com-content-category-blog .blog-item .article-info [class^="icon-"] { display: none; }
.com-content-category-blog .blog-item .article-info a { color: var(--rv-accent); text-decoration: none; }
.com-content-category-blog .blog-item .item-content > blockquote,
.com-content-category-blog .blog-item .item-content > p { order: 3; }
.com-content-category-blog .blog-item blockquote { margin: 0; padding: 0; border: 0; font-size: 15px; color: #555; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.com-content-category-blog .blog-item blockquote p { display: inline; margin: 0; }
.com-content-category-blog .blog-item .item-content > p { margin: 0 0 8px; color: #555; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.com-content-category-blog .blog-item .item-content > p:last-child { margin: 14px 0 0; color: #999; font-size: 13px; }
.com-content-category-blog .cat-children { margin-top: 56px; }

/* Journal: single article */
body:is(.itemid-106, .itemid-107) .com-content-article { max-width: 780px; margin: 0 auto; padding: 16px 0 40px; }
body:is(.itemid-106, .itemid-107) .com-content-article .page-header h1 { margin: 6px 0 14px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.15; text-transform: none; color: var(--rv-ink); }
body:is(.itemid-106, .itemid-107) .com-content-article .article-info { display: block; margin: 0 0 32px; padding-bottom: 20px; border-bottom: 1px solid #eee; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
body:is(.itemid-106, .itemid-107) .com-content-article .article-info dd { margin: 0; }
body:is(.itemid-106, .itemid-107) .com-content-article .article-info [class^="icon-"] { display: none; }
body:is(.itemid-106, .itemid-107) .com-content-article .article-info a { text-decoration: none; }
body:is(.itemid-106, .itemid-107) .com-content-article .item-image { float: none; margin: 0 0 40px; background: #111; text-align: center; }
body:is(.itemid-106, .itemid-107) .com-content-article .item-image img { display: block; width: auto; max-width: 100%; max-height: 72vh; height: auto; margin: 0 auto; }
body:is(.itemid-106, .itemid-107) .com-content-article__body { font-size: 18px; line-height: 1.8; color: #333; }
body:is(.itemid-106, .itemid-107) .com-content-article__body blockquote { position: relative; margin: 0 0 28px; padding: 56px 0 0; border: 0; font-size: clamp(20px, 2.4vw, 25px); font-weight: 300; line-height: 1.6; color: var(--rv-ink); }
body:is(.itemid-106, .itemid-107) .com-content-article__body blockquote::before { content: "\201C"; position: absolute; top: -18px; left: -4px; color: var(--rv-accent); font-family: Georgia, serif; font-size: 110px; line-height: 1; }
body:is(.itemid-106, .itemid-107) .com-content-article__body > p:last-child em { color: var(--rv-accent); font-size: 14px; font-style: normal; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
body:is(.itemid-106, .itemid-107) .pagenavigation { margin-top: 56px; padding-top: 28px; border-top: 1px solid #eee; }
body:is(.itemid-106, .itemid-107) .pagenavigation .pagination { display: flex; justify-content: space-between; gap: 16px; margin: 0; }
body:is(.itemid-106, .itemid-107) .pagenavigation .btn { background: none; border: 1px solid #ddd; border-radius: 0; color: var(--rv-ink); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 12px 20px; }
body:is(.itemid-106, .itemid-107) .pagenavigation .btn:hover { border-color: var(--rv-accent); color: var(--rv-accent); }
/* In a journal article the menu's page heading ("Journal"/"Quotes") is hidden; the article title is the heading */
body:is(.itemid-106, .itemid-107) .com-content-article .page-header h1 { display: none; }
body:is(.itemid-106, .itemid-107) .com-content-article .page-header h2 { margin: 6px 0 14px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.15; color: var(--rv-ink); }

/* Site Credits */
.rv-credits { max-width: 780px; }
.rv-credits-lead { font-size: 18px; color: #555; margin-bottom: 36px; }
.rv-credits ol { list-style: none; counter-reset: rv; margin: 0 0 40px; padding: 0; }
.rv-credits li { counter-increment: rv; position: relative; padding: 24px 0 24px 64px; border-top: 1px solid #eee; }
.rv-credits li::before { content: counter(rv, decimal-leading-zero); position: absolute; left: 0; top: 26px; color: var(--rv-accent); font-size: 22px; font-weight: 700; }
.rv-credits h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.rv-credits h2 a { color: var(--rv-ink); text-decoration: none; }
.rv-credits h2 a:hover { color: var(--rv-accent); }
.rv-credits-role { margin: 0 0 8px; color: var(--rv-accent); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rv-credits li p:last-child { margin: 0; color: #555; }

/* Legal pages */
.rv-legal { max-width: 780px; font-size: 16px; line-height: 1.75; }
.rv-legal-date { color: #999; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 28px; }
.rv-legal h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 600; color: var(--rv-ink); }
.rv-legal ul { padding-left: 20px; }
.rv-legal li { margin-bottom: 8px; }
