:root {
  --paper: #faf5f1;
  --ink: #0a0909;
  --emma: #882e3a;
  --muted: rgba(10, 9, 9, 0.72);
  --line: rgba(10, 9, 9, 0.14);
  --shadow: 0 20px 60px rgba(10, 9, 9, 0.12);
  --max: 1120px;

  --font-body: "Arsenal", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-head: "The Seasons", "Cormorant Garamond", Georgia, "Times New Roman",
    serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/paper-grain.svg");
  background-size: 260px 260px;
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

.soft-rise-text {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.soft-rise-text.is-visible {
  animation: erayaSoftRise 900ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: var(--soft-rise-delay, 0ms);
}

@keyframes erayaSoftRise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .soft-rise-text {
    opacity: 1;
    transform: none;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.micro {
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.h2,
.h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

.h2 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--emma);
}

.h3 {
  font-size: 1rem;
  color: var(--ink);
}

.lede {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.section {
  padding: clamp(56px, 7vw, 92px) 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.section__head p {
  margin: 0;
  max-width: 52ch;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  box-shadow: 0 10px 30px rgba(10, 9, 9, 0.06);
  background: rgba(250, 245, 241, 0.5);
}

.hero {
  padding: 0;
}

.hero__frame {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  border: 0;
  box-shadow: none;
  background: rgba(10, 9, 9, 0.03);
  overflow: hidden;
}

.menu-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-btn:focus-visible {
  outline: 2px solid rgba(136, 46, 58, 0.55);
  outline-offset: 4px;
}

.menu-btn__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      180deg,
      rgba(250, 245, 241, 0.95) 0%,
      rgba(232, 221, 214, 0.75) 55%,
      rgba(10, 9, 9, 0.03) 100%
    ),
    url("../images/hero-poster.svg");
  background-size: cover;
  background-position: center;
}

.hero__logo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(0.9) contrast(0.96);
}

.hero__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px 24px 86px;
  z-index: 2;
}

.hero__domains {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 20px;
  max-width: 80ch;
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: 0.06em;
  color: rgba(136, 46, 58, 0.55);
  z-index: 3;
}

.hero__logo-motion,
.hero__logo-img {
  width: min(820px, 72%);
  aspect-ratio: 820 / 280;
  margin: 0 auto;
  filter: drop-shadow(0 30px 80px rgba(10, 9, 9, 0.12));
}

.hero__logo-motion {
  display: none;
  position: relative;
  background: url("../images/hero-poster.svg");
  background-size: cover;
  background-position: center;
}

.hero__logo-img {
  display: block;
  height: auto;
  opacity: 0.92;
}


.hero__tagline {
  margin: 26px 0 18px;
  text-align: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: rgba(10, 9, 9, 0.8);
}

.hero__tagline-you {
  font-family: var(--font-body);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--emma);
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.hero__bar-text {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: rgba(10, 9, 9, 0.72);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.service p {
  margin: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.work {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  overflow: hidden;
}

.work:nth-child(1) {
  grid-column: span 7;
}

.work:nth-child(2) {
  grid-column: span 5;
}

.work:nth-child(3) {
  grid-column: span 6;
}

.work img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 400ms ease;
}

.work:hover img {
  transform: scale(1.02);
}

.work__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 12px;
  background: rgba(250, 245, 241, 0.7);
}

.work__title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.work__sub {
  margin: 0;
  color: rgba(10, 9, 9, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  padding-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(10, 9, 9, 0.28);
  background: rgba(10, 9, 9, 0.06);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}

.btn:hover {
  border-color: rgba(10, 9, 9, 0.45);
}

.btn--ghost {
  background: transparent;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.client {
  grid-column: span 4;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.client__t {
  margin: 0 0 6px;
  font-weight: 700;
}

.client p {
  margin: 0;
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.contact__card {
  border: 1px solid var(--line);
  padding: 22px;
  background: rgba(250, 245, 241, 0.55);
}

.contact__link {
  display: inline-block;
  color: var(--ink);
  text-decoration-color: rgba(136, 46, 58, 0.35);
  text-underline-offset: 4px;
  font-size: 1.1rem;
}

.spacer {
  height: 16px;
}

.footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.footer__logo {
  margin: 0;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--emma);
}

.footer__logo-img {
  display: block;
  width: min(220px, 55vw);
  height: auto;
}

.footer__brand p {
  margin: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.menu-overlay__panel {
  position: absolute;
  inset: 0;
  background: rgba(250, 245, 241, 0.96);
  color: var(--ink);
  backdrop-filter: blur(6px);
  padding: 22px 22px 40px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.menu-overlay__topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.menu-overlay__brand {
  justify-self: center;
}

.menu-overlay__brand img {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  opacity: 0.92;
}

.menu-overlay__close {
  justify-self: start;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: rgba(10, 9, 9, 0.82);
  cursor: pointer;
  font-size: 2.6rem;
  line-height: 1;
  padding: 0;
}

.menu-overlay__close:focus-visible {
  outline: 2px solid rgba(136, 46, 58, 0.55);
  outline-offset: 4px;
}

.menu-overlay__nav {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
}

.menu-link {
  text-decoration: none;
  color: rgba(10, 9, 9, 0.88);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: clamp(1.15rem, 2.3vw, 1.9rem);
}

.menu-link:hover,
.menu-link:focus-visible {
  color: var(--emma);
  text-decoration: underline;
  text-decoration-color: rgba(136, 46, 58, 0.6);
  text-underline-offset: 10px;
}

.no-scroll {
  overflow: hidden;
}

@media (max-width: 920px) {
  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .client {
    grid-column: span 6;
  }

  .work:nth-child(1),
  .work:nth-child(2),
  .work:nth-child(3) {
    grid-column: span 12;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero__domains {
    font-size: 0.95rem;
  }

  .menu-link {
    letter-spacing: 0.28em;
  }
}

/* Portfolio page */
:root {
  --eraya-lily: #faf5f1;
  --eraya-black: #0a0909;
  --eraya-emma: #882e3a;

  --bs-body-font-family: "Arsenal", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --bs-body-bg: var(--eraya-lily);
  --bs-body-color: var(--eraya-black);
  --bs-body-bg-rgb: 250, 245, 241;
  --bs-body-color-rgb: 10, 9, 9;

  --bs-white: var(--eraya-lily);
  --bs-white-rgb: 250, 245, 241;
  --bs-black: var(--eraya-black);
  --bs-black-rgb: 10, 9, 9;
  --bs-dark: var(--eraya-black);
  --bs-dark-rgb: 10, 9, 9;

  --bs-primary: var(--eraya-emma);
  --bs-primary-rgb: 134, 46, 59;

  --bs-link-color: var(--eraya-black);
  --bs-link-color-rgb: 10, 9, 9;
  --bs-link-hover-color: var(--eraya-emma);
  --bs-link-hover-color-rgb: 134, 46, 59;

  --bs-secondary-color: rgba(10, 9, 9, 0.65);
  --bs-tertiary-color: rgba(10, 9, 9, 0.45);
  --bs-border-color: rgba(10, 9, 9, 0.18);
  --bs-border-color-translucent: rgba(10, 9, 9, 0.18);

  --bs-box-shadow: 0 0.5rem 1rem rgba(10, 9, 9, 0.15);
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(10, 9, 9, 0.12);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(10, 9, 9, 0.2);
  --bs-focus-ring-color: rgba(134, 46, 59, 0.35);
  --eraya-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

.eraya-about-slide {
  height: 100vh;
  height: 100svh;
}

.plogo-tag,
.plogo-tag a {
  color: var(--eraya-emma);
  font-size: 1.45rem;
  opacity: 0.7;
}

.plogo-tag a {
  text-decoration: none;
}

.eraya-about-slide > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.eraya-about-shade {
  background: linear-gradient(
    0deg,
    rgba(10, 9, 9, 0.58) 0%,
    rgba(10, 9, 9, 0.22) 45%,
    rgba(10, 9, 9, 0) 100%
  );
}

.eraya-about-caption {
  max-width: 44ch;
}

.eraya-about-swiper {
  position: relative;
}

.eraya-swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: 0;
  background: transparent;
  color: var(--eraya-lily);
  padding: 0;
  cursor: pointer;
}

.eraya-swiper-btn:focus-visible {
  outline: 2px solid rgba(250, 245, 241, 0.85);
  outline-offset: 6px;
  border-radius: 999px;
}

.eraya-swiper-prev {
  left: clamp(14px, 3vw, 60px);
}

.eraya-swiper-next {
  right: clamp(14px, 3vw, 60px);
}

.eraya-swiper-arrow svg {
  width: clamp(44px, 6vw, 78px);
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(10, 9, 9, 0.35));
}

.eraya-hero-domains {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  background: var(--eraya-emma);
  color: var(--eraya-lily);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  box-shadow: var(--bs-box-shadow-sm);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eraya-hero-footer {
  background: rgba(10, 9, 9, 0.08);
}

.eraya-hero-logo-svg {
  width: min(750px, 88vw);
  height: auto;
}

.eraya-logo-mask-image {
  filter: brightness(1000%);
}

.eraya-about-heading {
  font-family: var(--eraya-serif);
}

.eraya-about-heading-lg {
  line-height: 1.08;
}

.eraya-arrow-reverse {
  transform: rotate(180deg);
}

.eraya-section-title,
.eraya-service-heading {
  letter-spacing: 0.12em;
}

.eraya-section-title {
  color: var(--eraya-emma);
}

.eraya-service-item {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    color 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.eraya-service-item:hover {
  transform: translateX(15px);
  color: var(--eraya-emma);
}

.eraya-portfolio-item .ratio {
  overflow: hidden;
}

.eraya-portfolio-ratio {
  --bs-aspect-ratio: 66.6667%;
}

.eraya-portfolio-img {
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.eraya-portfolio-item:hover .eraya-portfolio-img {
  transform: scale(1.08);
}

.eraya-portfolio-title {
  font-family: var(--eraya-serif);
  font-size: clamp(1.15rem, 1.75vw, 1.6rem);
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
}

.eraya-portfolio-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
}

.eraya-portfolio-title span::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: rgba(10, 9, 9, 0.2);
}

.eraya-portfolio-title span::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--eraya-black);
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.eraya-portfolio-item:hover .eraya-portfolio-title span::after {
  width: 100%;
}
.eraya-portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  padding: 0 0 1.25rem;
  border-bottom: 1px solid rgba(10, 9, 9, 0.12);
}

.eraya-portfolio-filter-btn {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(10, 9, 9, 0.62);
  font-family: var(--eraya-serif);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.2;
  padding: 0 0 0.35rem;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.eraya-portfolio-filter-btn:hover,
.eraya-portfolio-filter-btn:focus-visible,
.eraya-portfolio-filter-btn.is-active {
  color: var(--eraya-emma);
  border-color: currentColor;
}

.eraya-portfolio-filter-btn:focus-visible {
  outline: 1px solid rgba(136, 46, 58, 0.5);
  outline-offset: 6px;
}

[data-portfolio-item] {
  transition: opacity 180ms ease;
}

[data-portfolio-item][hidden] {
  display: none !important;
}

.btn-outline-dark {
  --bs-btn-color: var(--eraya-black);
  --bs-btn-border-color: var(--eraya-black);
  --bs-btn-hover-color: var(--eraya-lily);
  --bs-btn-hover-bg: var(--eraya-black);
  --bs-btn-hover-border-color: var(--eraya-black);
  --bs-btn-focus-shadow-rgb: 134, 46, 59;
  --bs-btn-active-color: var(--eraya-lily);
  --bs-btn-active-bg: var(--eraya-black);
  --bs-btn-active-border-color: var(--eraya-black);
  --bs-btn-disabled-color: rgba(10, 9, 9, 0.4);
  --bs-btn-disabled-border-color: rgba(10, 9, 9, 0.4);
}

.offcanvas-backdrop {
  background-color: var(--eraya-black);
}

.eraya-menu-btn {
  background: var(--paper) !important;
  border-radius: 2px;
  padding: 0.6rem 0.75rem !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  z-index: 1040;
}

.eraya-menu-btn:hover {
  background: var(--paper) !important;
  opacity: 1;
}

.eraya-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 14px;
}

.eraya-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--eraya-black);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.eraya-hamburger span:nth-child(2) {
  width: 60%;
}

.eraya-menu-btn:hover .eraya-hamburger span:nth-child(2) {
  width: 100%;
}

.eraya-menu-label {
  display: none !important;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--eraya-black);
}

.eraya-menu-logo,
.eraya-footer-logo {
  max-width: 220px;
}

.eraya-close-btn {
  transition: opacity 0.3s ease;
}

.eraya-close-btn:hover {
  opacity: 0.7;
}

.eraya-close-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eraya-close-icon span {
  position: absolute;
  width: 100%;
  height: 1.5px;
  background-color: var(--eraya-black);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.eraya-close-icon span:nth-child(1) {
  transform: rotate(45deg);
}

.eraya-close-icon span:nth-child(2) {
  transform: rotate(-45deg);
}

.eraya-close-btn:hover .eraya-close-icon span:nth-child(1) {
  transform: rotate(135deg);
}

.eraya-close-btn:hover .eraya-close-icon span:nth-child(2) {
  transform: rotate(45deg);
}

.eraya-nav-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--eraya-black) !important;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.24em;
  font-size: clamp(0.88rem, 1.65vw, 1.18rem) !important;
  padding: 0.28rem 0.75rem !important;
  transition: color 0.4s ease;
  font-family: var(--eraya-serif);
}

.eraya-offcanvas .nav {
  gap: 0.55rem !important;
}

.eraya-nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: 0;
  left: 50%;
  background-color: var(--eraya-emma);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateX(-50%);
}

.eraya-nav-link:hover,
.eraya-nav-link:focus {
  color: var(--eraya-emma) !important;
  outline: none;
}

.eraya-nav-link:hover::after,
.eraya-nav-link:focus::after {
  width: 100%;
}

.eraya-offcanvas {
  --bs-offcanvas-width: 100vw;
  --bs-offcanvas-bg: rgba(250, 245, 241, 0.92);
  --bs-offcanvas-color: var(--bs-body-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.eraya-menu-social-title {
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--eraya-emma);
}

.eraya-menu-social-link {
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  text-decoration: none;
}

.eraya-footer-social-link {
  letter-spacing: 0.1em;
  text-decoration: none;
}

.eraya-footer-copy {
  letter-spacing: 0.05em;
}

.project-hero {
  position: relative;
  width: 100%;
  height: clamp(300px, 38vw, 520px);
  min-height: 300px;
  overflow: hidden;
}

.project-hero img {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.03);
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 9, 0.24);
  pointer-events: none;
}

.project-title {
  font-family: var(--eraya-serif);
  font-size: clamp(2.25rem, 3vw, 3.65rem);
  color: var(--eraya-black);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.project-eyebrow {
  color: var(--eraya-emma);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

.project-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  margin-bottom: clamp(1.9rem, 3vw, 2.8rem);
}

.project-meta {
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(10, 9, 9, 0.68);
  font-weight: 400;
  margin-bottom: 0;
  display: block;
}

.project-description {
  font-size: clamp(0.96rem, 0.96vw, 1.04rem);
  line-height: 1.62;
  color: rgba(10, 9, 9, 0.62);
  margin: 0 0 1.8rem;
}

.project-quote {
  font-family: var(--eraya-serif);
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.35;
  color: var(--eraya-black);
  text-align: left;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.project-intro {
  padding: clamp(70px, 8vw, 118px) 0 clamp(24px, 4vw, 56px);
}

.project-details-layout {
  padding: clamp(58px, 6vw, 92px) 0 clamp(42px, 6vw, 84px);
}

.project-details-copy {
  align-self: stretch;
}


.project-details-images {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.6vw, 58px);
}

.project-details-image {
  aspect-ratio: 16 / 10.65;
  box-shadow: 0 18px 46px rgba(10, 9, 9, 0.11);
}

@media (min-width: 992px) {
  .project-details-copy-inner {
    position: sticky;
    top: clamp(76px, 8vw, 126px);
    padding-left: clamp(0px, 1.4vw, 24px);
  }

}



.project-slideshow-link {
  color: var(--eraya-black);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.project-slideshow-link:hover {
  color: var(--eraya-emma);
}

.project-footer {
  padding-top: clamp(70px, 7vw, 110px) !important;
  padding-bottom: clamp(58px, 6vw, 92px) !important;
}

.image-item {
  overflow: hidden;
  background: rgba(10, 9, 9, 0.03);
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.image-item:hover img {
  transform: scale(1.03);
}

.project-gallery {
  padding-top: 0 !important;
  padding-bottom: clamp(32px, 5vw, 72px);
}

.project-gallery-image img {
  display: block;
  height: auto;
  object-fit: contain;
}

.project-details-image img {
  height: 100%;
  object-fit: cover;
}

.project-gallery-pair {
  aspect-ratio: 1 / 1;
}

.project-gallery-pair img {
  height: 100%;
  object-fit: cover;
}

.project-slideshow-modal {
  --bs-modal-bg: var(--eraya-black);
  --bs-modal-color: var(--eraya-lily);
}

.project-slideshow-modal .modal-content {
  background: var(--eraya-black);
  color: var(--eraya-lily);
}

.project-slideshow-modal .modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(10, 9, 9, 0.72), rgba(10, 9, 9, 0));
}

.project-slideshow-title {
  font-family: var(--eraya-serif);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 400;
}

.project-slideshow-close {
  filter: invert(1);
  opacity: 0.9;
}

.project-slideshow-modal .modal-body {
  padding: 0;
}

.project-slideshow-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: contain;
}

.project-slideshow-control {
  width: clamp(54px, 8vw, 110px);
}

/* Feature page */
.feature-hero {
  position: relative;
  padding: clamp(100px, 12vw, 170px) 0;
}

.feature-kicker {
  color: var(--eraya-emma);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.46em;
}

.feature-title {
  font-family: var(--eraya-serif);
  font-size: clamp(3rem, 5.2vw, 6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--eraya-black);
}

.feature-lede {
  max-width: 39ch;
  color: rgba(10, 9, 9, 0.58);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.45;
}

.feature-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(56px, 8vw, 110px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: rgba(10, 9, 9, 0.42);
  transform: translateX(-50%);
}

.feature-scroll-cue span {
  display: block;
  width: 1px;
  height: 34px;
  background: rgba(136, 46, 58, 0.42);
}

.feature-scroll-cue small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.feature-story {
  padding: clamp(32px, 4vw, 58px) 0 clamp(68px, 8vw, 118px);
}

.feature-block {
  margin-bottom: clamp(76px, 9vw, 132px);
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-media-row {
  row-gap: clamp(24px, 4vw, 48px);
}

.feature-copy-row {
  margin-top: clamp(20px, 2.5vw, 34px);
}

.feature-copy {
  color: rgba(10, 9, 9, 0.58);
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  line-height: 1.62;
}

.feature-copy p {
  margin-bottom: 1.45rem;
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.feature-number {
  color: rgba(199, 164, 130, 0.78);
  font-family: var(--eraya-serif);
  font-size: clamp(2.15rem, 3vw, 3.25rem);
  font-style: italic;
  line-height: 1;
  margin-bottom: 1rem !important;
}

.feature-copy-heading {
  color: rgba(83, 53, 39, 0.88);
  font-family: var(--eraya-serif);
  font-size: clamp(1.5rem, 1.8vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 1.35rem;
}

.feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 22px 54px rgba(10, 9, 9, 0.11);
}

.feature-founder {
  padding: clamp(96px, 12vw, 170px) 0 clamp(70px, 9vw, 132px);
}

.feature-founder-kicker,
.feature-cta-kicker {
  color: var(--eraya-emma);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  margin-bottom: 1.8rem;
}

.feature-founder-quote {
  color: rgba(83, 53, 39, 0.88);
  font-family: var(--eraya-serif);
  font-size: clamp(1.3rem, 1.65vw, 1.85rem);
  font-style: italic;
  line-height: 1.45;
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
}

.feature-founder-copy {
  color: rgba(10, 9, 9, 0.44);
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  line-height: 1.65;
  margin: 0 auto;
 /* max-width: 54ch;*/
  text-align: left;
}

.feature-cta {
  padding: clamp(76px, 10vw, 132px) 0 clamp(88px, 10vw, 150px);
}

.feature-cta-title {
  color: rgba(10, 9, 9, 0.78);
  font-family: var(--eraya-serif);
  font-size: clamp(1.9rem, 2.6vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1.35rem;
}

.feature-cta-copy {
  color: rgba(10, 9, 9, 0.4);
  font-size: clamp(0.92rem, 1vw, 1.04rem);
  line-height: 1.55;
  margin: 0 auto 2rem;
 /* max-width: 43ch;*/
}

.feature-cta-link {
  color: rgba(10, 9, 9, 0.74);
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding-bottom: 0.35rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(136, 46, 58, 0.52);
}

.feature-cta-link:hover {
  color: var(--eraya-emma);
}

.aspect-landscape {
  aspect-ratio: 4 / 3;
}

.aspect-portrait {
  aspect-ratio: 3 / 4;
}

.aspect-pano {
  aspect-ratio: 21 / 9;
}

@media (max-width: 920px) {
  .project-quote {
    max-width: 100%;
  }

  .project-details-layout {
    padding-top: 58px;
  }

  
  .project-details-image {
    aspect-ratio: 4 / 3;
  }

  .feature-hero {
    min-height: 78vh !important;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .feature-scroll-cue {
    bottom: 42px;
  }

  .feature-block {
    margin-bottom: 74px;
  }

  .feature-copy-row {
    margin-top: 22px;
  }

  .feature-image {
    aspect-ratio: 4 / 3;
  }
}

@keyframes erayaMaskSlider {
  0% {
    opacity: 0;
    transform: scale(1) translateX(40px);
  }

  6.25% {
    opacity: 1;
    transform: scale(1.05) translateX(24px);
  }

  25% {
    opacity: 1;
    transform: scale(1.2) translateX(-24px);
  }

  31.25% {
    opacity: 0;
    transform: scale(1.25) translateX(-40px);
  }

  100% {
    opacity: 0;
    transform: scale(1.25) translateX(-40px);
  }
}

.eraya-mask-slide {
  opacity: 0;
  animation: erayaMaskSlider 16s linear infinite;
  transform-origin: center center;
}

.mask-slide-1 {
  animation-delay: 0s;
}

.mask-slide-2 {
  animation-delay: 4s;
}

.mask-slide-3 {
  animation-delay: 8s;
}

.mask-slide-4 {
  animation-delay: 12s;
}

/* About page */
.about-page-hero {
  padding: clamp(36px, 5vw, 68px) 0 clamp(24px, 4vw, 44px);
}

.about-page-kicker {
  font-family: var(--eraya-serif);
  letter-spacing: 0.46em;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  color: var(--eraya-black);
}

.about-page-title {
  font-family: var(--eraya-serif);
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--eraya-black);
}

.about-page-lede {
  max-width: 42ch;
  font-family: var(--eraya-serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.22;
  color: rgba(10, 9, 9, 0.9);
}

.about-page-feature {
  padding-bottom: clamp(28px, 4vw, 50px);
}

.about-page-feature-img {
  display: block;
  width: min(100%, 1500px);
  height: clamp(320px, 42vw, 620px);
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
}

.about-page-copy {
  padding: 0 0 clamp(28px, 4vw, 50px);
}

.about-page-copy p {
  font-family: var(--font-body);
  font-size: clamp(1.18rem, 1.45vw, 1.45rem);
  line-height: 1.58;
  margin-bottom: 1.35rem;
  color: rgba(10, 9, 9, 0.82);
}

.about-page-activities {
  padding: clamp(48px, 6vw, 76px) 0 clamp(28px, 4vw, 46px);
  border-top: 1px solid rgba(10, 9, 9, 0.08);
  border-bottom: 1px solid rgba(10, 9, 9, 0.08);
}

.about-page-activity-line {
  max-width: 48ch;
  color: var(--eraya-emma);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  letter-spacing: 0;
  line-height: 1.35;
}

.about-page-activity-links {
  width: min(100%, 1180px);
  margin: clamp(12px, 2vw, 24px) auto 0;
}

.about-page-activity-card {
  display: block;
  color: var(--eraya-black);
  text-decoration: none;
}

.about-page-activity-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.about-page-activity-card span {
  display: block;
  margin-top: 12px;
  font-family: var(--eraya-serif);
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  line-height: 1.25;
  color: rgba(10, 9, 9, 0.78);
}

.about-page-activity-card:hover img,
.about-page-activity-card:focus-visible img {
  filter: brightness(0.92);
  transform: translateY(-4px);
}

.about-page-activity-card:focus-visible {
  outline: 1px solid rgba(136, 46, 58, 0.5);
  outline-offset: 8px;
}

.about-page-sectors {
  padding: clamp(26px, 3.5vw, 44px) 0 clamp(64px, 7vw, 96px);
  background: rgba(255, 255, 255, 0.16);
  overflow-x: hidden;
}

.about-page-sectors > .container {
  width: min(1320px, calc(100% - 48px));
  max-width: none;
}

.about-page-sector-copy {
  max-width: 68ch;
  color: rgba(10, 9, 9, 0.78);
  font-size: 0.95rem;
  line-height: 1.35;
}

.about-page-sector-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(26px, 5vw, 78px);
  margin-bottom: clamp(22px, 3vw, 36px);
}

.about-page-sector-tab {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--eraya-serif);
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.3;
  color: rgba(10, 9, 9, 0.68);
  cursor: pointer;
  transition: color 180ms ease;
}

.about-page-sector-tab:hover,
.about-page-sector-tab:focus-visible,
.about-page-sector-tab.is-active {
  color: var(--eraya-emma);
}

.about-page-sector-tab:focus-visible {
  outline: 1px solid rgba(136, 46, 58, 0.5);
  outline-offset: 8px;
}

.about-page-sector-panels {
  position: relative;
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.about-page-collage {
  position: relative;
  width: 100%;
  min-height: clamp(430px, 40vw, 640px);
  margin: 0 auto;
  column-gap: clamp(3px, 0.35vw, 7px);
}

.about-page-collage[hidden] {
  display: none;
}

.about-collage-img {
  position: relative;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 22px 54px rgba(10, 9, 9, 0.08);
}

.about-collage-1 {
  width: 14%;
  height: clamp(300px, 28vw, 460px);
  margin-top: clamp(110px, 10vw, 160px);
}

.about-collage-2 {
  width: 21%;
  height: clamp(480px, 43vw, 690px);
  margin-top: clamp(48px, 5vw, 86px);
  z-index: 2;
}

.about-collage-3 {
  width: 26%;
  height: clamp(440px, 38vw, 620px);
  margin-top: 0;
  z-index: 3;
}

.about-collage-4 {
  width: 21%;
  height: clamp(400px, 35vw, 560px);
  margin-top: clamp(78px, 7vw, 120px);
  z-index: 2;
}

.about-collage-5 {
  width: 13%;
  height: clamp(270px, 25vw, 400px);
  margin-top: clamp(44px, 4.5vw, 76px);
}

/* Contact page */
.contact-page-hero {
  padding: clamp(28px, 4vw, 54px) 0 clamp(8px, 2vw, 20px);
}

.contact-page-kicker {
  color: rgba(10, 9, 9, 0.78);
  font-family: var(--eraya-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  letter-spacing: 0.58em;
  line-height: 1;
}

.contact-page-title {
  font-family: var(--eraya-serif);
  font-size: clamp(2.35rem, 6.2vw, 5.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(10, 9, 9, 0.78);
  text-transform: uppercase;
}

.contact-page-content {
  padding: clamp(16px, 3vw, 42px) 0 clamp(46px, 6vw, 86px);
}

.contact-page-content .container > .row {
  --bs-gutter-x: clamp(2.6rem, 7vw, 6.5rem);
}

.contact-column-title {
  margin: 0 0 clamp(34px, 5vw, 66px);
  color: var(--eraya-black);
  font-family: var(--eraya-serif);
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
  white-space: nowrap;
}

.contact-column-title--form {
  margin-bottom: clamp(42px, 5.6vw, 82px);
}

.contact-page-details {
  border-top: 1px solid rgba(10, 9, 9, 0.16);
  padding-top: clamp(28px, 4vw, 42px);
}

.contact-form-panel {
  position: relative;
  padding-top: clamp(28px, 4vw, 42px);
}

.contact-form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--bs-gutter-x) * 0.5);
  right: 0;
  height: 1px;
  background: rgba(10, 9, 9, 0.16);
}

.contact-page-eyebrow {
  margin-bottom: 28px;
  color: var(--eraya-emma);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}

.contact-page-detail {
  padding: 0 0 clamp(22px, 3vw, 30px);
  margin-bottom: clamp(22px, 3vw, 30px);
  border-bottom: 1px solid rgba(10, 9, 9, 0.12);
}

.contact-page-detail span {
  display: block;
  margin-bottom: 14px;
  color: rgba(10, 9, 9, 0.55);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-page-detail p {
  margin: 0;
  color: rgba(10, 9, 9, 0.86);
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.55;
}

.contact-page-detail a {
  color: inherit;
  text-decoration-color: rgba(136, 46, 58, 0.4);
  text-underline-offset: 4px;
}

.contact-page-form .row {
  --bs-gutter-x: clamp(1.6rem, 3.4vw, 3rem);
  --bs-gutter-y: clamp(2rem, 3.4vw, 3rem);
}

.contact-page-form input,
.contact-page-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(10, 9, 9, 0.86);
  border-radius: 0;
  background: transparent;
  color: var(--eraya-black);
  font-family: var(--eraya-serif);
  font-size: clamp(0.9rem, 1vw, 1.04rem);
  line-height: 1.4;
  padding: 0 0 12px;
  outline: none;
  transition: border-color 180ms ease;
}

.contact-page-form textarea {
  min-height: clamp(95px, 11vw, 130px);
  padding-top: 2px;
  resize: vertical;
}

.contact-page-form input::placeholder,
.contact-page-form textarea::placeholder {
  color: rgba(10, 9, 9, 0.72);
  opacity: 1;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
  border-color: var(--eraya-emma);
}

.contact-page-submit {
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: rgba(10, 9, 9, 0.86);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 0 8px;
  text-transform: none;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-page-submit:hover,
.contact-page-submit:focus-visible {
  color: var(--eraya-emma);
  transform: translateY(-2px);
}

.contact-page-map {
  padding: 0 0 clamp(52px, 7vw, 96px);
}

.contact-page-map iframe {
  display: block;
  width: 100%;
  min-height: clamp(320px, 34vw, 480px);
  border: 0;
  filter: grayscale(0.2) contrast(0.96);
}

@media (max-width: 1199.98px) {
  .about-page-sectors > .container {
    width: min(1120px, calc(100% - 36px));
  }

  .about-page-sector-panels {
    width: 100%;
  }

  .about-page-collage {
    min-height: clamp(430px, 52vw, 620px);
  }
}

@media (max-width: 991.98px) {
  .about-page-sectors > .container {
    width: min(760px, calc(100% - 32px));
  }

  .about-page-sector-panels {
    width: 100%;
  }

  .about-page-collage {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    height: auto;
    min-height: 0;
  }

  .about-collage-img {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 0;
    aspect-ratio: 4 / 5;
  }

  .about-collage-1,
  .about-collage-4,
  .about-collage-5 {
    grid-column: span 2;
  }

  .about-collage-2,
  .about-collage-3 {
    grid-column: span 3;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 991.98px) {
  .contact-form-panel {
    padding-top: 8px;
  }

  .contact-form-panel::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .about-page-lede {
    max-width: 100%;
  }

  .about-page-feature-img {
    height: 320px;
  }

  .about-page-activities {
    padding: 44px 0 34px;
  }

  .about-page-activity-line {
    font-size: 1rem;
  }

  .about-page-activity-links {
    margin-top: 28px;
  }

  .contact-page-title {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .contact-column-title {
    font-size: clamp(1.9rem, 10vw, 3.25rem);
    margin-bottom: 28px;
    white-space: normal;
  }

  .contact-page-details {
    margin-bottom: 16px;
  }

  .about-page-sector-tabs {
    gap: 16px 28px;
  }

  .about-page-sector-panels {
    width: 100%;
  }

  .about-page-collage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    height: auto;
    min-height: 0;
  }

  .about-collage-img {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 0;
    aspect-ratio: 4 / 3;
  }

  .about-collage-1,
  .about-collage-2,
  .about-collage-3,
  .about-collage-4,
  .about-collage-5 {
    grid-column: auto;
  }
}
