@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&family=Voces&display=swap');

:root {
  /* Layout */
  --container: 1400px;
  --narrow: 1000px;
  --rad: 8px;
  /* Typography */
  --body-font: 400 .875rem/1.5 var(--font);
  --font: "Karla", sans-serif;
  --font2: "Voces", sans-serif;
  --light: 400;
  --med: 600;
  --bold: 600;
  --h: var(--font2);
  --h-fw: 500;
  --hr: #C1A797;
  /* Colours */
  --body: var(--a1);
  --color: var(--c9);
  --link: var(--a1);
  --a1: #D27131;
  --a2: #f9a56d;
  --c1: #fff;
  --c2: #ebe9e5;
  --c3: #7f8d97;
  --c4: #546478;
  --c5: #435266;
  --c6: #354050;
  --c7: #132840;
  --c8: #A4522A;
  --c9: #88583B;
  accent-color: var(--a1);
  --form-bg: var(--c1);
  --footer: var(--c1);
  --footer-bg: var(--a1) url(i/x2.webp) no-repeat center 90%;
  --gotop: var(--a2);
  /* Buttons */
  --btn: var(--c1);
  --btn-bg: var(--a1);
  --btn2: var(--c1);
  --btn2-bg: var(--a2);
  /* Nav */
  --nav-bg: none;
  --logo-alt: 80px;
  --nico: var(--c1);
  --menu: var(--c1);
  --menu-bg: var(--a1) url(i/menu-logo.svg) no-repeat -5vw 90%;
  --menu-bg-size: auto 80vh;
  --menu-current: #fff;
  --submenu: var(--c3);
  --blur: none;
  /* Filters */
  --filter: invert(70%) sepia(36%) saturate(7324%) hue-rotate(345deg) brightness(91%) contrast(79%);
  --filter2: invert(100%);
  --filter3: var(--filter);
  --logo-filter: invert(100%);
  --logo-alt-filter: invert(100%);
  /* Fluid */
  --h8: clamp(0.625rem, 0.5739rem + 0.2273vw, 0.75rem);
  --h7: clamp(0.7292rem, 0.6941rem + 0.1559vw, 0.85rem);
  --h6: clamp(0.875rem, 0.8206rem + 0.2419vw, 1.0625rem);
  --h5: clamp(1.05rem, 0.9693rem + 0.3589vw, 1.3281rem);
  --h4: clamp(1.26rem, 1.1438rem + 0.5163vw, 1.6602rem);
  --h3: clamp(1.512rem, 1.3485rem + 0.7267vw, 2.0752rem);
  --h2: clamp(1.8144rem, 1.5881rem + 1.0059vw, 2.594rem);
  --h1: clamp(2.1773rem, 1.868rem + 1.3745vw, 3.2425rem);
  --h0: clamp(2.6127rem, 2.1946rem + 1.8586vw, 4.0531rem);
  --s: clamp(0.5rem, 0.3977rem + 0.4545vw, 0.75rem);
  --m: clamp(1.3125rem, 1.2036rem + 0.4839vw, 1.6875rem);
  --l: clamp(1.75rem, 1.6048rem + 0.6452vw, 2.25rem);
  --xl: clamp(2.625rem, 2.4073rem + 0.9677vw, 3.375rem);
  --gutter: 1.25rem;
  --x: clamp(0.875rem, 0.2102rem + 2.9545vw, 2.5rem);
  --x2: calc(2 * var(--x));
  --x3: calc(3 * var(--x));
  --y: calc(2 * var(--x));
}

@media (min-width: 640px) {
  :root {
    --menu-bg: var(--a1) url(i/menu-logo.svg) no-repeat -5% 80%;
    --menu-bg-size: auto 80vh;
  }

  .order-md-1 {
    order: 1;
  }
}

@media (min-width: 1400px) {
  :root {
    --logo-alt: 120px;
    --menu-alt: var(--c1);
    --submenu: var(--c2);
    --submenu-bg: var(--c7);
    --submenu-bg-current: var(--a2)
  }
}

.narrow {
  max-width: var(--narrow)
}

.cap,
.h1,
.h2,
h1,
h2,
h6 {
  color: var(--a1)
}

.lead {
  font-family: var(--font);
  font-size: var(--h6);
  font-weight: 400;
  letter-spacing: 1px;
}

h3 {
  line-height: 1.2;
}

h4,
h5,
h6 {
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: var(--s)
}

blockquote,
h4,
.h4 {
  font-family: var(--font)
}

.inv *,
.inv a,
.inv a em {
  color: var(--c1);
}

.inv [class*=-ol],
.inv [class*=-ol]:hover {
  color: var(--a1) !important;
  box-shadow: inset 0 0 0 2px var(--a1) !important;
}

.x1 {
  background: var(--a1) url(i/x1.webp) no-repeat var(--x) 90%;
  background-size: 90vw auto;
}

.a1 {
  background-color: var(--a1);
}

.c1 {
  background-color: var(--c1);
}

.c2 {
  background-color: var(--c2);
}

.c3 {
  background-color: var(--c3);
}

.c4 {
  background-color: var(--c4);
}

.c5 {
  background-color: var(--c5);
}

.c6 {
  background-color: var(--c6);
}

.c7 {
  background-color: var(--c7);
}

.c8 {
  background-color: var(--c8);
}

.c9 {
  background-color: var(--c9);
}

nav img {
  filter: invert(100%)
}

.nico {
  top: .5rem;
  right: var(--x);
  background: rgba(210, 113, 49, 1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.nico div,
.nico div::after,
.nico div::before {
  position: relative;
  width: 18px;
  height: 5px;
  left: 3px;
}

.nico div::after,
.nico div::before {
  position: absolute;
  left: 0;
  content: "";
  margin-top: -8px;
  transition-property: margin, transform;
  transition-duration: .2s;
  transition-delay: .2s, 0;
}

.nico div::after {
  margin-top: 8px;
  width: 10px
}

.open .nico div::before,
.open .nico div::after {
  width: 22px;
  height: 4px
}

.big-x {
  background: transparent url(i/x2.svg) no-repeat 25% center;
  background-size: auto 80%;
}

@media screen and (max-width: 639px) {
  .big-x {
    background-position: 110% 90%;
    background-size: 50% auto;
  }
}

@media screen and (min-width: 900px) {
  .nico {
    top: 1rem;
  }

  .x1 {
    background-size: 50vw auto;
  }

  .lead {
    letter-spacing: 2px;
    line-height: 1.8
  }

  .ymax {
    min-height: 100%;
  }

  .ymax img {
    min-height: 100%;
    object-fit: cover
  }
}

/* hero */
.more{
  background-color: var(--c8);
}

.more::after {
  content: '';
  position: absolute;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 18px;
  height: 18px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  opacity: 0.7;
  animation: bounceDown 1.6s cubic-bezier(0.25, 1.5, 0.5, 1) infinite;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(45deg);
    opacity: 0.7;
  }

  50% {
    transform: translateX(-50%) translateY(8px) rotate(45deg);
    opacity: 1;
  }
}

body.scrolled .more::after {
  opacity: 0;
  animation: none;
  transition: opacity 0.4s ease;
}

.m3p main {
  background-color: var(--c2);
}

.m3p main [class*=col-] p{    
    text-align: justify !important;
    text-align-last: left;
    text-justify: distribute;
    word-spacing: -1px;
  }

.hero {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 0;
  view-transition-name: none;
  background-color: var(--c9);
}

.hero+* {
  margin-top: 100vh;
}

section {
  z-index: 3;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap
}

.flex>* {
  flex: 1 1 120px;
  margin: 1rem;
}

.x2 {
  margin-left: 0;
}

.flex img {
  margin: 0 auto;
}

.embla__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.op-r img {
  object-position: 65% center
}

.embla__viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

.embla__container {
  display: flex;
  align-items: center;
}

.embla .embla__slide {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  width: 100vw;
  height: 100vh;
  position: relative;
}

.embla__dots {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 15vh;
  left: 0;
  margin: 0;
  padding: 0;
}

.embla__dot {
  min-width: auto;
  width: 12px;
  height: 12px;
  transform: scale(0.5);
  transition: transform .8s;
  border-radius: 50%;
  margin: 0 6px;
  border: none;
  background: var(--c1);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.embla__dot-selected {
  opacity: 1;
  background: var(--a1);
  transform: scale(1);
}

.tagline {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  text-align: center;
  color: #fff;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 0 .5rem
}

/* Base state for child elements */
.tagline>* {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

/* Staggered delays */
.tagline>*:nth-child(1) {
  transition-delay: .6s;
}

.tagline>*:nth-child(2) {
  transition-delay: 1s;
}

.tagline>*:nth-child(3) {
  transition-delay: 1.4s;
}

/* Active state triggers animation */
.tagline.active>* {
  opacity: 1;
  transform: translateY(0);
}

.tagline>* {
  color: #fff !important;
  margin-bottom: 0
}

.site-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 4;
}

.site-logo>div {
  margin: 0 auto;
  padding: .5rem var(--x);
}

.site-logo img {
  max-width: 70px;
  height: auto;
  filter: var(--filter2);
}

.back,
.m3p .nico {
  display: none;
}

.m3p .back {
  display: block;
  position: absolute;
  z-index: 4;
  padding: 0;
  min-width: auto;
  display: flex;
  align-items: center;
  top: .5rem;
  right: var(--x);
  background: rgba(210, 113, 49, 1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.back div {
  margin-left: 10px
}

.back div,
.back div::after,
.back div::before {
  position: relative;
  width: 18px;
  left: 3px;
}

.back div::after,
.back div::before {
  position: absolute;
  left: -2px;
  top: -1px;
  content: "";
  width: 22px;
  height: 4px;
  margin-top: 0;
  background-color: var(--nico);
  transform: rotate(-45deg);
}

.back div::before {
  transform: rotate(45deg);
}

.header0 {
  width: 100%;
  grid-column: 1 / 4;
  background: var(--a1);
  min-height: 90px;
}

.noban .site-logo img {
  filter: var(--filter);
}

.tagline p {
  font-size: var(--h4);
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase
}

.tagline h3 {
  font-size: var(--h2);
  font-weight: 400;
  letter-spacing: -1px;
  display: inline-flex;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  margin-bottom: .6875rem;
  line-height: 1.1
}

.pop img {
  transition: .4s all;
}

.pop a:hover img {
  opacity: .7;
  transform: scale(1.05)
}

@media screen and (min-width: 900px) {
  .site-logo img {
    max-width: 120px;
  }

  .header0 {
    min-height: 150px;
  }
}

/* Folio Main Page */
.folio [class*=col-] {
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 655px) {
.folio [class*=col-] {
  aspect-ratio: 6/7;

}
.reveal{
  aspect-ratio: 19/13
}

.reveal img{
  object-fit: cover;
  height: 100%;
  width: 100%;
  object-position: 70% center
}
}

.folio p {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
}

.folio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .8s ease;
}

/* Alternate image overlay (auto-added by JS) */
.folio .b {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}

/* Caption styling */
.folio .caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform .4s ease;
}

.folio .text1 {
  font-size: 0.75rem;
  line-height: 1.2;
  margin-bottom: .25rem
}

.folio .text2 {
  color: var(--c9);
  font-size: clamp(1rem, 0.8977rem + 0.4545vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -1px;
  -webkit-font-smoothing: antialiased;
}

/* Hover or active state for both alt image and caption */
.folio [class*=col-]:hover .b,
.folio [class*=col-].active .b {
  opacity: 1;
}

.folio [class*=col-]:hover .caption,
.folio [class*=col-].active .caption {
  transform: translateY(0);
}

/* Auto-show captions on touch devices if preferred */
@media (hover: none) and (pointer: coarse) {
  .folio .caption {
    transform: translateY(0);
  }
}

.just p,
.just li {
  text-align: justify !important;
  text-align-last: left;
  text-justify: distribute;
  word-spacing: -1px;
}

/* Gallery */
.gallery>div img {
  width: 100%;
}

.gallery>div {
  margin-bottom: var(--s);
}

@media screen and (min-width: 900px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-auto-rows: 180px;
    gap: var(--s);
    grid-auto-flow: dense;
  }

  .gallery>div {
    position: relative;
    overflow: hidden;
    margin: 0;
  }

  .gallery>div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .gallery>div.wide {
    grid-column: span 2;
  }

  .gallery>div.tall {
    grid-row: span 2;
  }

  .gallery>div.big {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media screen and (min-width: 1226px) and (max-width: 1248px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 240px;
  }
}

@media screen and (min-width: 1249px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 270px;
  }
}

section [class*=col-] *:last-child {
  margin-bottom: 0;
}

/* footer */
footer {
  background-size: 50vw
}

footer .row {
  justify-content: center;
  align-items: center;
}

.footer-center {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.footer-center a,
.menu li a {
  font-size: 20px;
  color: var(--c1) !important;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 .5rem;
  letter-spacing: 4px
}

.menu li a {
  font-size: 28px;
  font-family: var(--font2);
  margin-bottom: .5rem
}

footer img {
  filter: var(--filter2);
  max-height: 50px;
}

.footer-right {
  align-items: flex-end
}

.footer-right a {
  width: 30px;
}

#goTop {
  right: var(--x);
}

.note {
  font-size: 13px;
  font-weight: 700
}

@media screen and (max-width: 649px) {
  .note {
    font-size: 12px;
  }

  .m3p .more::after {
    display: none;
  }

  footer {
    padding-top: 1rem
  }

  .footer-left img {
    margin: 0 auto
  }

  .footer-center {
    justify-content: center;
  }

  .footer-center a {
    font-size: .875rem;
    letter-spacing: 2px;
    margin: 0 .375rem;
  }

  .footer-right {
    align-items: center
  }
}

table {
  font-size: 100%;
  margin: 0
}

tr,
th {
  background-color: transparent;
}

td,
th {
  padding: 3px;
  padding-left: 0;
}

th {
  color: var(--c3);
  font-weight: 400;
}

tr:nth-child(even),
tr:hover {
  filter: none;
}

hr {
  margin: .875rem 0 1.5rem;
  opacity: 1
}

.x-c img {
  margin: 0 auto
}