:root {
  --charcoal: #17161c;
  --ivory: #f2eee5;
  --ink: #2b2927;
  --muted: #756e66;
  --bronze: #9f866c;
  --bronze-light: #c1a17e;
  --line: #cfc5b7;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --work-image: url("https://images.unsplash.com/photo-1516979187457-637abb4f9353?auto=format&fit=crop&w=1600&q=88");
  --person-image: url("https://images.unsplash.com/photo-1561214115-f2f134cc4912?auto=format&fit=crop&w=1600&q=88");
  --life-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=88");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, .025),
      transparent 38%
    ),
    var(--charcoal);
  color: var(--ivory);
  text-align: center;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  padding-bottom: 7vh;
}

.brand {
  margin: 0 0 clamp(3.5rem, 8vh, 5.75rem);
  color: #a69a90;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
}

.askesis {
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.askesis__greek {
  display: block;
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 400;
  line-height: .92;
  transition:
    color 350ms var(--ease),
    transform 350ms var(--ease);
}

.askesis__reveal {
  display: grid;
  justify-items: center;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 420ms var(--ease),
    margin-top 350ms var(--ease),
    opacity 300ms ease,
    transform 350ms var(--ease);
}

.askesis__word {
  color: var(--bronze-light);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-style: italic;
}

.askesis__definition {
  max-width: 430px;
  margin-top: .55rem;
  color: #9c928a;
  font-family: var(--sans);
  font-size: .78rem;
  line-height: 1.65;
  letter-spacing: .04em;
}

.askesis:hover .askesis__greek,
.askesis:focus-visible .askesis__greek,
.askesis.is-open .askesis__greek {
  color: #ede5da;
  transform: translateY(-3px);
}

.askesis:hover .askesis__reveal,
.askesis:focus-visible .askesis__reveal,
.askesis.is-open .askesis__reveal {
  max-height: 130px;
  margin-top: 1.25rem;
  opacity: 1;
  transform: translateY(0);
}

.askesis:focus-visible {
  outline: none;
}

.askesis:focus-visible .askesis__greek {
  outline: 1px solid var(--bronze-light);
  outline-offset: 12px;
}

.hero__rule {
  display: block;
  width: 90px;
  height: 1px;
  margin: clamp(2rem, 4vh, 2.6rem) auto 1.6rem;
  background: rgba(159, 134, 108, .85);
}

.hero__tagline {
  margin: 0;
  color: #d8d0c6;
  font-size: clamp(1.3rem, 2.8vw, 1.55rem);
  font-style: italic;
}

.hero__explore {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(2rem, 5vh, 3.5rem);
  display: grid;
  justify-items: center;
  gap: .7rem;
  color: #8e857e;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__chevron {
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--bronze);
  border-bottom: 1px solid var(--bronze);
  transform: rotate(45deg);
  animation: drift 2.2s ease-in-out infinite;
}

.hero__fade {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: min(18vh, 150px);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(242, 238, 229, .2) 72%,
    var(--ivory)
  );
  pointer-events: none;
}

@keyframes drift {
  0%,
  100% {
    opacity: .45;
    transform: rotate(45deg) translate(0, 0);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) translate(3px, 3px);
  }
}

/* WELCOME */

.welcome {
  padding: clamp(6.5rem, 11vw, 10rem) 0 clamp(6rem, 10vw, 9rem);
  text-align: center;
}

.section-label {
  margin: 0 0 2rem;
  color: var(--bronze);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.welcome__copy {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.welcome__copy p {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 1vw + 1rem, 1.75rem);
    line-height: 1.75;
    color: #332c27;
    margin: 0 0 2.5rem;
}

.welcome__realization {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
    line-height: 1.35;
    font-weight: 500;
    color: #1f1b18;
    margin: 3rem 0;
}

.welcome__copy p:last-child {
    font-size: clamp(1.3rem, 0.9vw + 0.9rem, 1.55rem);
    color: #5b5148;
    margin-top: 3rem;
}

.welcome-closing {
  margin: 4rem auto 7rem;
  max-width: 760px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.3;
  font-weight: 400;
  color: #26211e;
}

/* GALLERY */

.galleries {
  padding-bottom: clamp(7rem, 11vw, 10rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2rem);
}

.gallery-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(44, 39, 34, .55);
  border-radius: 22px;
  background: var(--charcoal);
  color: var(--ivory);
  isolation: isolate;
}

.gallery-card__image,
.gallery-card__veil,
.gallery-card__content {
  position: absolute;
  inset: 0;
}

.gallery-card__image {
  background-position: center;
  background-size: cover;
  filter:
    saturate(.42)
    sepia(.18)
    contrast(.96)
    brightness(.67);
  transform: scale(1.001);
  transition:
    transform 700ms var(--ease),
    filter 500ms var(--ease);
}

.gallery-card--work .gallery-card__image {
  background-image: var(--work-image);
}

.gallery-card--person .gallery-card__image {
  background-image: var(--person-image);
  background-position: center 30%;
}

.gallery-card--life .gallery-card__image {
  background-image: var(--life-image);
}

.gallery-card__veil {
  background:
    linear-gradient(
      to top,
      rgba(14, 13, 15, .96) 0%,
      rgba(14, 13, 15, .76) 35%,
      rgba(14, 13, 15, .22) 72%,
      rgba(14, 13, 15, .16) 100%
    ),
    radial-gradient(
      circle at center,
      transparent 40%,
      rgba(12, 11, 13, .32) 100%
    );
}

.gallery-card__content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 3vw, 2.35rem);
}

.gallery-card__number {
  color: var(--bronze-light);
  font-size: 1.2rem;
}

.gallery-card__lower,
.gallery-card__label,
.gallery-card__title,
.gallery-card__rule,
.gallery-card__description {
  display: block;
}

.gallery-card__label {
  margin-bottom: .8rem;
  color: var(--bronze-light);
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.gallery-card__title {
  margin-bottom: .9rem;
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 1;
}

.gallery-card__rule {
  width: 38px;
  height: 1px;
  margin-bottom: 1.2rem;
  background: var(--bronze);
  transition: width 350ms var(--ease);
}

.gallery-card__description {
  max-width: 32ch;
  color: #d7cec2;
  font-size: 1rem;
  line-height: 1.58;
}

.gallery-card__link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: 2rem;
  color: var(--bronze-light);
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.gallery-card__link span {
  transition: transform 300ms var(--ease);
}

.gallery-card:hover .gallery-card__image,
.gallery-card:focus-visible .gallery-card__image {
  filter:
    saturate(.5)
    sepia(.14)
    contrast(1)
    brightness(.74);
  transform: scale(1.035);
}

.gallery-card:hover .gallery-card__rule,
.gallery-card:focus-visible .gallery-card__rule {
  width: 52px;
}

.gallery-card:hover .gallery-card__link span,
.gallery-card:focus-visible .gallery-card__link span {
  transform: translateX(4px);
}

/* FOOTER */

.footer {
  padding-bottom: clamp(4rem, 7vw, 6rem);
  text-align: center;
}

.footer__ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(360px, 72vw);
  margin: 0 auto 2rem;
}

.footer__ornament span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.footer__ornament i {
  width: 7px;
  height: 7px;
  background: var(--bronze);
  transform: rotate(45deg);
}

.footer__motto {
  margin: 0;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .29em;
  text-transform: uppercase;
}

.footer__translation {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
}

/* TABLET */

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - .7rem);
    justify-self: center;
  }
}

/* MOBILE */

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 28px, 460px);
  }

  .brand {
    margin-bottom: 4rem;
  }

  .askesis__greek {
    font-size: clamp(4.3rem, 19vw, 6.2rem);
  }

  .askesis__definition {
    max-width: 290px;
  }

  .welcome {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .welcome__copy {
    font-size: 1.35rem;
    line-height: 1.55;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card:last-child {
    width: 100%;
    min-height: 510px;
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}