/* RHETBEAR.COM — AUG26 GLOBAL STYLES */

:root {
  --page-bg: #f2f2f2;
  --surface: #fff;
  --header-bg: #fcfcfc;
  --text: #111;
  --muted: #595959;
  --content-width: 1030px;
  --project-content-width: 1180px;
  --column-gap: 28px;
  --row-gap: 34px;
}

* { box-sizing: border-box; }

html { background: var(--page-bg); }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

::selection {
  color: #fff;
  background: #000;
}

/* Global header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  color: #111;
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.header-inner {
  width: min(var(--content-width), calc(100% - 40px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  color: #111;
  font-family: "Oswald", sans-serif;
  font-size: 19px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}

.brand-divider {
  margin: 0 10px;
  opacity: .7;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 34px);
  color: #111;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.site-nav a,
.brand {
  transition: opacity .2s ease;
}

.site-nav a:hover,
.brand:hover {
  opacity: .58;
}

/* Homepage hero */
.hero {
  width: 100%;
  background: #000;
  overflow: hidden;
}

.index-fader {
  width: 100%;
  background: #000;
}

.index-fader .swiper-wrapper,
.index-fader .swiper-slide {
  background: #000;
}

.index-fader .swiper-slide a { display: block; }

.index-fader .swiper-slide img,
.index-fader a:hover img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  opacity: 1;
  transform: none;
  transition: none;
}

/* Homepage project grid */
.home-main {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.section-title {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
  letter-spacing: .035em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  column-gap: var(--column-gap);
  row-gap: var(--row-gap);
}

.project-card { min-width: 0; }

.project-image-link {
  display: block;
  overflow: hidden;
  background: #d8d8d8;
}

.project-image-link img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

.project-image-link:hover img {
  transform: scale(1.02);
  opacity: .9;
}

.project-copy {
  padding-top: 7px;
  line-height: 1.18;
}

.project-title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.18;
}

.project-detail {
  margin: 1px 0 0;
  font-size: 15px;
  line-height: 1.2;
}

.project-copy a {
  transition: opacity .2s ease;
}

.project-copy a:hover { opacity: .62; }

/* Individual project pages */
.project-main {
  width: min(var(--project-content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

/* Optional project video aspect ratios */
.video-frame.ratio-960-435 {
  aspect-ratio: 960 / 435;
}

.video-frame.ratio-960-729 {
  aspect-ratio: 960 / 729;
}

.video-frame.ratio-960-720 {
  aspect-ratio: 960 / 720;
}

.video-frame.ratio-960-409 {
  aspect-ratio: 960 / 409;
}

.video-frame.ratio-960-400 {
  aspect-ratio: 960 / 400;
}

.video-frame.ratio-960-393 {
  aspect-ratio: 960 / 393;
}

.video-frame.ratio-960-384 {
  aspect-ratio: 960 / 384;
}

.video-frame.ratio-960-383 {
  aspect-ratio: 960 / 383;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-info {
  display: grid;
  grid-template-columns: minmax(230px,.75fr) minmax(360px,1.25fr);
  gap: clamp(48px,8vw,120px);
  padding: 26px 4px 0;
}

.project-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
}

.project-subtitle {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.3;
}

.project-studio {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.credits {
  display: grid;
  gap: 3px;
  font-size: 16px;
  line-height: 1.12;
}

.credit {
  display: grid;
  grid-template-columns: minmax(145px,max-content) 1fr;
  gap: 16px;
}

.credit-name { font-weight: 400; }
.credit-role { color: var(--muted); }

/* Footer */
.site-footer {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.project-page .site-footer {
  width: min(var(--project-content-width), calc(100% - 40px));
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding: 10px 0 11px;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .project-main {
    width: 100%;
  }

  .video-frame {
    width: 100%;
  }

  .project-info,
  .project-page .site-footer {
    width: min(calc(100% - 40px), var(--project-content-width));
    margin-left: auto;
    margin-right: auto;
  }

  .project-info {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 22px;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .home-main,
  .site-footer {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .header-inner {
    min-height: auto;
    padding-top: 9px;
    padding-bottom: 10px;
    gap: 8px;
  }

  .brand {
    font-size: 16px;
    font-weight: 300;
  }

  .brand-divider { margin: 0 8px; }

  .site-nav {
    font-size: 15px;
    font-weight: 300;
    gap: 7px 16px;
  }

  .home-main { padding-top: 27px; }

  .section-title { margin-bottom: 19px; }

  .project-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .project-copy { padding-top: 7px; }

  .project-main {
    width: 100%;
    padding-top: 22px;
    padding-bottom: 54px;
  }

  .project-info {
    width: min(calc(100% - 28px), var(--project-content-width));
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .project-page .site-footer {
    width: min(calc(100% - 28px), var(--project-content-width));
  }

  .project-heading { font-size: 20px; }

  .credit {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .credit-role { margin-top: 1px; }
}

/* Progressive page transitions */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .38s;
  animation-timing-function: ease;
}

::view-transition-old(root) { animation-name: page-fade-out; }
::view-transition-new(root) { animation-name: page-fade-in; }

@keyframes page-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
