


:root {
  
  --white-color:                  #f8f7f2;
  --primary-color:                #ffc107;
  --section-bg-color:             #f2ece4;
  --dark-color:                   #2a2a2a;
  --grey-color:                   #ebe6dc;
  --text-secondary-white-color:   rgba(255, 255, 255, 0.98);
  --title-color:                  #2a2a2a;
  --p-color:                      #4a4a4a;

  --body-font-family:           'Noto Sans JP', sans-serif;

  --h1-font-size:               72px;
  --h2-font-size:               42px;
  --h3-font-size:               36px;
  --h4-font-size:               32px;
  --h5-font-size:               24px;
  --h6-font-size:               22px;
  --p-font-size:                20px;
  --copyright-text-font-size:   14px;
  --custom-link-font-size:      12px;

  --font-weight-light:          300;
  --font-weight-normal:         400;
  --font-weight-bold:           700;
  --font-weight-black:          900;
}

body,
html {
  height: 100%;
}

body {
    background: var(--white-color);
    font-family: var(--body-font-family);    
    position: relative;
}



h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
}

h1,
h2 {
  font-weight: var(--font-weight-black);
}

h1 {
  font-size: var(--h1-font-size);
  line-height: normal;
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.5px;
}

.text-secondary-white-color {
  color: var(--text-secondary-white-color);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

::selection {
  background: var(--dark-color);
  color: var(--white-color);
}

.custom-underline {
  border-bottom: 2px solid var(--white-color);
  color: var(--white-color);
  padding-bottom: 4px;
}

.videoWrapper {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  z-index: 0;
}


@media screen and (max-width: 991.98px) {
  .hero .videoWrapper {
    padding-bottom: 0;
    height: auto;
    aspect-ratio: 9 / 16;
    width: 100%;
    max-height: min(88dvh, 52rem);
    margin-left: auto;
    margin-right: auto;
  }

  .hero .videoWrapper .custom-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero {
    min-height: 0;
  }
}

.custom-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  background: linear-gradient(
    to top,
    rgba(248, 247, 242, 0.96) 0%,
    rgba(248, 247, 242, 0.74) 38%,
    rgba(248, 247, 242, 0.26) 68%,
    transparent 100%
  );
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}


.custom-links {
  max-width: 230px;
}

.custom-link {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  transition: all .3s cubic-bezier(.645,.045,.355,1);
}

.custom-link::after {
  content: "";
  width: 0;
  height: 2px;
  bottom: 0;
  position: absolute;
  left: auto;
  right: 0;
  z-index: -1;
  transition: width .6s cubic-bezier(.25,.8,.25,1) 0s;
  background: currentColor;
}

.custom-link:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

.custom-link:hover,
.custom-link:hover::after {
  color: var(--white-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}



.navbar {
  z-index: 9;
  right: 0;
  left: 0;
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-brand {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 15px;
  padding-left: 15px;
}

.navbar-nav .nav-link::after {
  content: "\f140";
  font-family: bootstrap-icons;
  display: inline-block;
  margin-left: 10px;
  color: var(--primary-color);
  opacity: 0;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  -moz-transition: opacity 0.3s, -moz-transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
  -webkit-transform: translateY(10px);
  -moz-transform: translateY(10px);
  transform: translateY(10px);
}

.navbar-nav .nav-link:hover::after {
  opacity: 1;
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  transform: translateY(0px);
}

.navbar-nav .nav-link {
  color: var(--p-color);
  position: relative;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
  color: var(--primary-color);
  opacity: 1;
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  transform: translateY(0px);
}

.navbar-nav .nav-item.active .nav-link,
.nav-link:focus, 
.nav-link:hover {
  color: var(--dark-color);
}

.nav-link:focus {
  color: var(--p-color);
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--dark-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--dark-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon:before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon:after {
  top: 8px;
}


@media (max-width: 991.98px) {
  .site-nav.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .site-nav .container {
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    max-width: 100%;
  }

  .site-nav .navbar-toggler.site-nav__burger {
    position: relative;
    z-index: 10052;
    margin-left: auto !important;
    margin-right: 0 !important;
    background: rgba(248, 247, 242, 0.94);
    border-radius: 999px;
    box-shadow: 0 1px 10px rgba(42, 42, 42, 0.14);
  }

  .site-nav .navbar-collapse {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10051;
    width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: max(5rem, calc(env(safe-area-inset-top, 0px) + 4rem)) 1.25rem 2rem !important;
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px)) !important;
    background: var(--white-color) !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav .navbar-collapse.collapsing {
    height: auto !important;
    transition: none;
  }

  .site-nav .navbar-collapse.show {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .navbar-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
  }

  .site-nav .site-nav__lang-mobile {
    border-bottom-color: var(--grey-color, #ebe6dc) !important;
  }
}


.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

@media screen and (min-width: 992px) {
  .hero {
    height: 100vh;
  }

  .custom-video,
  .news-detail-image {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
  }

  .sticky-wrapper {
    position: relative;
    bottom: 76px;
  }
}

.heroText {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 36rem);
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  text-align: center;
}

@media screen and (max-width: 991.98px) {
  .hero .heroText {
    top: 44%;
    transform: translate(-50%, -50%);
  }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  opacity: 0.88;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.hero-scroll:hover {
  opacity: 1;
  color: var(--dark-color);
}

.hero-scroll:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 999px;
}

.hero-scroll__mouse {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(42, 42, 42, 0.12));
  animation: hero-scroll-bob 2s ease-in-out infinite;
}

.hero-scroll__svg {
  display: block;
}

.hero-scroll__wheel {
  animation: hero-scroll-wheel-fade 2s ease-in-out infinite;
}

@keyframes hero-scroll-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes hero-scroll-wheel-fade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll__mouse,
  .hero-scroll__wheel {
    animation: none;
  }
}

@media screen and (min-width: 992px) {
  .hero-scroll {
    bottom: calc(76px + 0.75rem);
  }
}

.back-to-top {
  position: fixed;
  z-index: 1040;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--dark-color);
  color: var(--white-color);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(42, 42, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1f1f1f;
  color: var(--white-color);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.back-to-top .bi {
  font-size: 1.25rem;
  line-height: 1;
}

@media screen and (min-width: 992px) {
  .back-to-top {
    bottom: calc(76px + 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
}

@media screen and (max-width: 991.98px) {
  .mfp-bg {
    z-index: 10060 !important;
  }

  .mfp-wrap {
    z-index: 10061 !important;
  }

  .mfp-content {
    z-index: 10063 !important;
  }

  .mfp-preloader {
    z-index: 10062 !important;
  }

  button.mfp-close,
  button.mfp-arrow,
  .mfp-counter {
    z-index: 10064 !important;
  }

  body.mfp-modal-open .navbar-toggler.site-nav__burger {
    visibility: hidden;
    pointer-events: none;
  }
}


.about-image,
.team-image {
  width: 100%;
  height: 100%;
  max-height: 635px;
  min-height: 475px;
  object-fit: cover;
}

.team-thumb {
  background: var(--white-color);
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  padding: 22px 32px 32px 32px;
}

.carousel-control-next, 
.carousel-control-prev {
  top: auto;
  bottom: 2.5rem;
}

.carousel-control-prev {
  right: 4rem;
  left: auto;
}

.carousel-control-next-icon, 
.carousel-control-prev-icon {
  background-color: var(--dark-color);
  background-size: 50% 50%;
  border-radius: 100px;
  width: 3rem;
  height: 3rem;
}


.portfolio-thumb {
  position: relative;
  overflow: hidden;
}

.portfolio-thumb__media {
  position: relative;
  overflow: hidden;
  
  background-color: var(--white-color, #f8f7f2);
}


.portfolio-thumb__media--aspect-3-2 {
  aspect-ratio: 3 / 2;
}

.portfolio-thumb__media--aspect-2-3 {
  aspect-ratio: 2 / 3;
}

.portfolio-thumb__media .portfolio-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease-out;
}

.portfolio-thumb:hover .portfolio-thumb__media .portfolio-video {
  transform: scale(1.02);
}


.portfolio-thumb--full .portfolio-thumb__media--aspect-21-9 {
  aspect-ratio: 21 / 9;
}

.portfolio-thumb--full .portfolio-thumb__media--aspect-21-9 .portfolio-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.portfolio-thumb--full:hover .portfolio-thumb__media--aspect-21-9 .portfolio-image {
  transform: scale(1.02);
}

.portfolio-info {
  margin: 0;
}


.portfolio-thumb .portfolio-thumb__media + .portfolio-info,
.portfolio-thumb .image-popup + .portfolio-info {
  margin-top: 0;
}



.news,
.related-news {
  background: var(--section-bg-color);
}

.news-thumb {
  position: relative;
}

.news-category {
  background: var(--white-color);
  position: absolute;
  z-index: 9;
  top: 0;
  left: 0;
  padding: 4px 12px;
  display: inline-block;
}

.news-text-info {
  margin: 0 20px;
}

.news-title {
  margin-top: 15px;
  margin-bottom: 15px;
}

.news-title-link {
  color: var(--title-color);
  display: inline-block;
}

.news-title-link:hover {
  color: var(--dark-color);
}

.portfolio-image,
.news-image {
  display: block;
  transition: transform 0.6s ease-out;
}

.news-image-hover {
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all .3s cubic-bezier(.645,.045,.355,1);
  padding-bottom: 4px;
  height: 100%;
}

.news-image-hover::after {
  content: "";
  width: 0;
  height: 4px;
  bottom: 0;
  position: absolute;
  left: auto;
  right: 0;
  z-index: -1;
  transition: width .6s cubic-bezier(.25,.8,.25,1) 0s;
  background: #198754;
}

.news-image-hover-warning::after {
  background: #ffc107;
}

.news-image-hover-primary::after {
  background: #0d6efd;
}

.news-image-hover-success::after {
  background: #198754;
}

.news-image-hover:hover::after {
  width: 100%;
  left: 0;
  right: auto;
  z-index: 9;
}

.image-popup:hover .portfolio-image,
.news-image-hover:hover .news-image {
  transform: scale(1.02);
}

.news-two-column {
  min-height: 199px;
  margin-bottom: 16px;
}

.news-two-column .news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-share-link,
.social-share-link + span {
  color: rgba(255, 255, 255, 0.65);
}


.social-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  text-decoration: none;
}


.section-padding {
  padding-top: 7rem;
  padding-bottom: 7rem;
}


.contact-info {
  padding: 40px;
}

.contact-form .form-control {
  border-radius: 0;
  font-weight: var(--font-weight-normal);
  padding-top: 12px;
  padding-bottom: 12px;
}

.contact-form button[type='submit'] {
  background: var(--dark-color);
  border: none;
  border-radius: 100px;
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  padding: 16px;
  transition: all 0.6s ease-out;
}

.contact-form button[type='submit']:hover {
  background: var(--primary-color);
}

.form-label {
  color: var(--p-color);
  font-weight: var(--font-weight-bold);
}

.map-iframe {
  display: block;
  filter: grayscale(100);
}


.site-footer {
  background: var(--section-bg-color);
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  border-top: 1px solid rgba(42, 42, 42, 0.06);
}


.site-footer .container {
  max-width: min(47.5rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.copyright-text {
  color: rgba(42, 42, 42, 0.55);
  font-size: var(--copyright-text-font-size);
}


.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  color: rgba(42, 42, 42, 0.45);
  font-size: 1rem;
  display: inline-block;
  vertical-align: top;
  margin-top: 4px;
  margin-bottom: 4px;
  margin-right: 15px;
}

.social-icon-link:hover {
  color: var(--primary-color);
}


@media screen and (min-width: 1600px) {
  .news-two-column {
    min-height: 232.5px;
  }
}

@media screen and (max-width: 991px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .team-thumb {
    left: 0;
    width: auto;
  }

  .news-two-column {
    height: auto !important;
    min-height: inherit;
  }

  .news .col-12 .news-two-column:first-child {
    margin-bottom: 38px;
  }
}

@media screen and (max-width: 767px) {
  .news-detail-title {
    font-size: 36px;
  }
}

@media screen and (max-width: 360px) {
  h1 {
    font-size: 32px;
  }

  .heroText p {
    font-size: 14px;
  }
}

@media screen and (max-width: 359px) {
  .news-detail-title {
    font-size: 22px;
  }
}

@media screen and (min-width: 992px) {
  main > nav.site-nav ~ #services.services-create {
    padding-top: clamp(2rem, 3.5vw, 2.75rem);
  }

  main > .sticky-wrapper ~ #services.services-create {
    margin-top: -76px;
    padding-top: calc(76px + 1rem);
  }
}


.portfolio-embla {
  position: relative;
}

.portfolio-embla__viewport {
  overflow: hidden;
}

.portfolio-embla__container {
  display: flex;
  /* Faster touch response; vertical scroll still works on the page outside the swipe gesture */
  touch-action: manipulation;
}

.portfolio-embla__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0;
}

.portfolio-slide {
  height: 100%;
}

.portfolio-slide__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--section-bg-color);
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(42, 42, 42, 0.08);
}

.portfolio-slide__header {
  position: relative;
  z-index: 1;
  flex: none;
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 1.35rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-slide__title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portfolio-slide__media {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem 1.25rem;
}

.portfolio-slide__frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  max-height: min(56vh, 640px);
  background: #111;
  overflow: hidden;
  border-radius: 0.2rem;
}

@media screen and (min-width: 768px) {
  .portfolio-slide__inner {
    flex-direction: row;
    align-items: stretch;
    min-height: clamp(14rem, 36vw, 22rem);
  }

  .portfolio-slide__header {
    flex: 0 0 30%;
    width: 30%;
    max-width: 30%;
    padding: 1rem 0.85rem;
    box-sizing: border-box;
  }

  .portfolio-slide__media {
    flex: 0 0 70%;
    width: 70%;
    max-width: 70%;
    padding: 0.85rem 0.85rem 0.85rem 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .portfolio-slide__frame {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: clamp(11rem, 28vw, 18rem);
    max-height: none;
    aspect-ratio: auto;
    margin-inline: 0;
  }
}

.portfolio-slide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.portfolio-slide__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

.portfolio-embla__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.portfolio-embla__btn {
  border: 1px solid rgba(42, 42, 42, 0.15);
  background: var(--white-color);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.portfolio-embla__btn:hover {
  background: var(--grey-color);
  border-color: rgba(42, 42, 42, 0.25);
}

.portfolio-embla__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.portfolio-embla__dot {
  /* ~44×44px tap target; small dot drawn on ::before (don’t paint the full button — looks “giant”) */
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portfolio-embla__dot::before {
  content: '';
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 42, 42, 0.35);
  background: transparent;
  box-sizing: border-box;
}

.portfolio-embla__dot.is-selected::before {
  background: var(--dark-color);
  border-color: var(--dark-color);
}

@media screen and (max-width: 767.98px) {
  .portfolio-slide__media {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Project detail: tighter vertical rhythm on small screens (mobile-first overrides) */
@media screen and (max-width: 991.98px) {
  main.project-page .project-page__masthead.section-padding {
    padding-top: clamp(4.25rem, 12vw + 2rem, 5.75rem);
    padding-bottom: 1rem !important;
  }

  main.project-page .project-page__body.section-padding {
    padding-top: 2.5rem;
    padding-bottom: clamp(3rem, 10vw, 4rem);
  }
}

.project-page__title {
  font-size: clamp(1.5rem, 5.2vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.project-page__hero-video {
  background: var(--white-color, #f8f7f2);
  padding-bottom: 0.5rem;
}

.project-page__hero-native-outer {
  display: flex;
  justify-content: center;
}

.project-page__hero-native-wrap {
  display: block;
  width: 70%;
  max-width: 100%;
  margin-inline: auto;
  line-height: 0;
  border-radius: 0.2rem;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(42, 42, 42, 0.1);
}

@media screen and (max-width: 575.98px) {
  .project-page__hero-native-wrap {
    width: 100%;
  }
}

.project-page__hero-vimeo {
  position: relative;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  max-height: min(calc(82vh * 0.7), calc(960px * 0.7));
  background: #111;
  overflow: hidden;
}

.project-page__hero-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Additional Vimeo: portrait frame (9:16) avoids pillarboxing in 16:9 ratio boxes */
.project-page__extra-video-row > [class*='col-'] {
  display: flex;
  justify-content: center;
}

.project-page__ratio {
  position: relative;
  overflow: hidden;
  border-radius: 0.2rem;
  background: #111;
}

.project-page__ratio--portrait {
  height: min(72vh, 760px);
  width: min(100%, calc(min(72vh, 760px) * 9 / 16));
  margin-inline: auto;
  box-shadow: 0 8px 28px rgba(42, 42, 42, 0.08);
}

@media screen and (max-width: 575.98px) {
  .project-page__ratio--portrait {
    height: min(58vh, 520px);
    width: min(100%, calc(min(58vh, 520px) * 9 / 16));
  }
}

.project-page__ratio .project-page__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-page__dl {
  margin: 0;
}

.project-page__dl-row {
  margin-bottom: 1rem;
}

.project-page__dl-row:last-child {
  margin-bottom: 0;
}

.project-page__dl dt {
  font-weight: var(--font-weight-black);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(42, 42, 42, 0.55);
  margin-bottom: 0.15rem;
}

.project-page__dl dd {
  margin: 0;
  font-size: 1rem;
  color: var(--dark-color);
  overflow-wrap: anywhere;
}

.project-page__brief-heading {
  font-size: 1.35rem;
  font-weight: var(--font-weight-black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.project-page__brief-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--p-color);
}

@media screen and (max-width: 575.98px) {
  .project-page__brief-text {
    font-size: 1rem;
    line-height: 1.62;
  }
}

.project-page__section-title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-page__gallery-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}

.project-page__gallery-link {
  text-decoration: none;
  color: inherit;
  border-radius: 0.125rem;
  overflow: hidden;
  outline-offset: 2px;
}

.project-page__gallery-link:focus-visible {
  outline: 2px solid var(--primary-color, #ffc107);
}

@media (hover: hover) and (pointer: fine) {
  .project-page__gallery-link:hover .project-page__gallery-thumb {
    opacity: 0.92;
    transform: scale(1.02);
    transition:
      opacity 0.2s ease,
      transform 0.25s ease;
  }
}

.project-page__figure {
  overflow: hidden;
  background: var(--grey-color);
}

